由于Spring Boot应用只是普通的Java应用,所以JVM热交换(hot-swapping)也能开箱即用。不过JVM热交换能替换的字节码有限制,想要更彻底的解决方案可以使用Spring Loadedarrow-up-right项目或JRebelarrow-up-right。spring-boot-devtools模块也支持应用快速重启(restart)。
spring-boot-devtools
详情参考下面的Chapter 20, Developer toolsarrow-up-right和“How-to”arrow-up-right章节。
Last updated 7 years ago
Was this helpful?