Hot swapping

简介: 83. Hot swapping83.1 Reload static contentThere are several options for hot reloading. The recommended approach is to use spring-boot-devtools as i...

 

83. Hot swapping
83.1 Reload static content
There are several options for hot reloading. The recommended approach is to use spring-boot-devtools as it provides additional development-time features such as support for fast application restarts and LiveReload as well as sensible development-time configuration (e.g. template caching). Devtools works by monitoring the classpath for changes. This means that static resource changes must be "built" for the change to take affect. By default, this happens automatically in Eclipse when you save your changes. In IntelliJ IDEA, Make Project will trigger the necessary build. Due to the default restart exclusions, changes to static resources will not trigger a restart of your application. They will, however, trigger a live reload.

 

 

83.4.1 Configuring Spring Loaded for use with Maven

To use Spring Loaded with the Maven command line, just add it as a dependency in the Spring Boot plugin declaration, e.g.

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <dependencies>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>springloaded</artifactId>
            <version>1.2.6.RELEASE</version>
        </dependency>
    </dependencies>
</plugin>

 

http://docs.spring.io/spring-boot/docs/current/reference/html/howto-hotswapping.html

https://github.com/joakim666/spring-boot-spring-loaded-java8-example

 https://github.com/spring-projects/spring-loaded

 

相关文章
HOT 100(81~100)【LeetCode】3
HOT 100(81~100)【LeetCode】3
31 0
|
算法
HOT 100(21~40)【LeetCode】3
HOT 100(21~40)【LeetCode】3
49 0
|
存储 算法 API
HOT 100(1~20)【LeetCode】(一)
HOT 100(1~20)【LeetCode】(一)
72 0
|
算法 图计算
HOT 100(1~20)【LeetCode】(三)
HOT 100(1~20)【LeetCode】(三)
43 0
|
算法 C++
HOT 100(81~100)【LeetCode】1
HOT 100(81~100)【LeetCode】1
42 0
|
缓存 Java 测试技术
HOT 100(41~60)【LeetCode】3
HOT 100(41~60)【LeetCode】3
32 0
|
算法
【LeetCode】HOT 100(6)
【LeetCode】HOT 100(6)
69 0
|
存储 算法
【LeetCode】HOT 100(26)
【LeetCode】HOT 100(26)
47 0
|
机器学习/深度学习
HOT 100(21~40)【LeetCode】1
HOT 100(21~40)【LeetCode】1
37 0
|
算法
HOT 100(61~80)【LeetCode】4
HOT 100(61~80)【LeetCode】4
54 0