Hot swapping in Spring Boot

前端 未结 12 1582
别那么骄傲
别那么骄傲 2020-11-29 03:41

I\'ve been doing a P.O.C with Spring Boot.

So far it\'s been going really good and promising, but there\'s one major drawback: I\'m using an embedded server (i.e.,

12条回答
  •  死守一世寂寞
    2020-11-29 03:59

    From 1.3.0. (now in Milestone 2) on, you can use the spring-boot-devtools for that as a lightweigt approach - see the docs or this blogpost. Simply upgrade to >= 1.3.0. and add the following to your pom.xml:

    
      
        org.springframework.boot
        spring-boot-devtools
      
    
    

    Than start your SpringBootApplication with Run As... and you´re fine.

提交回复
热议问题