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

2021-01-28 16:15

阅读:363

标签:spring   mamicode   ctrl   host   bsp   start   comm   app   demo1   

技术图片

 

 

 

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/

后面

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

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

技术图片

 

设置idea的Build project automatically勾选

ctrl+shift+alt+/

点击

registry

技术图片

 

勾选上面选项

技术图片

 

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

标签:spring   mamicode   ctrl   host   bsp   start   comm   app   demo1   

原文地址:https://www.cnblogs.com/ukzq/p/12835646.html


评论


亲,登录后才可以留言!