springboot使用热加载神奇插件jrebel,不需重构建/运行项目即可实时更改查看更改后效果

 

 

 

2020-05-06 12:21:09.502  INFO 2872 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 9090 (http) with context path ''
2020-05-06 12:21:09.508  INFO 2872 --- [           main] com.example.demo1.Demo1Application       : Started Demo1Application in 5.375 seconds (JVM running for 16.488)
2020-05-06 12:25:01 JRebel: Reloading class 'com.example.demo1.Demo1Application'.
2020-05-06 12:25:01 JRebel: Reinitialized class 'com.example.demo1.Demo1Application$$EnhancerBySpringCGLIB$$dfb5d3d2'.
2020-05-06 12:25:02 JRebel: Reconfiguring bean 'demo1Application' [com.example.demo1.Demo1Application$$EnhancerBySpringCGLIB$$dfb5d3d2]
2020-05-06 12:25:02 JRebel: Reconfiguring bean 'demo1Application' [com.example.demo1.Demo1Application$$EnhancerBySpringCGLIB$$dfb5d3d2]
2020-05-06 12:25:05.661  INFO 2872 --- [nio-9090-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-05-06 12:25:05.661  INFO 2872 --- [nio-9090-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2020-05-06 12:25:05.677  INFO 2872 --- [nio-9090-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 16 ms
2020-05-06 12:25:15 JRebel: Reloading class 'com.example.demo1.Demo1Application'.
2020-05-06 12:25:15 JRebel: Reinitialized class 'com.example.demo1.Demo1Application$$EnhancerBySpringCGLIB$$dfb5d3d2'.
2020-05-06 12:25:17 JRebel: Reconfiguring bean 'demo1Application' [com.example.demo1.Demo1Application$$EnhancerBySpringCGLIB$$dfb5d3d2]
    @GetMapping("")
    public String test(){
        return "test123";
    }

页面展示test123

    @GetMapping("")
    public String test(){
        return "test";
    }

页面展示test

 

激活方式

https://www.guidgen.com/ 

将在上面链接出生成获取的字符串连接到

https://jrebel.qekang.com/

** 2020-6-27已经过期

方法使用:http://www.xiwenblog.com/archives/1965

 

 

 

 记得点work offline,最终如上,便不再远程检测是否激活

后面

https://jrebel.qekang.com/d6ca6cc4-370a-432e-8d21-4fa86f7f5c7c

作为激活url,邮箱自己填写 点击激活

 

设置idea的Build project automatically勾选

ctrl+shift+alt+/

点击

registry

 

勾选上面选项

 

posted @ 2020-05-06 12:34  ukyo--碳水化合物  阅读(653)  评论(1)    收藏  举报