spring-boot 熱部署

spring-boot 熱部署

引入

<dependency> 
   <groupId>org.springframework</groupId> 
   <artifactId>springloaded</artifactId> 
   <version>1.2.4.RELEASE</version>
</dependency>
<plugin>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-maven-plugin </artifactId>
     <dependencies> 
       <!--springloaded  hot deploy --> 
       <dependency> 
           <groupId>org.springframework</groupId> 
           <artifactId>springloaded</artifactId> 
           <version>1.2.4.RELEASE</version>
       </dependency> 
    </dependencies> 
    <executions> 
       <execution> 
           <goals> 
               <goal>repackage</goal> 
           </goals> 
           <configuration> 
               <classifier>exec</classifier> 
           </configuration> 
       </execution> 
     </executions>
</plugin>

spring-boot:runjava

配置JVM

-javaagent:"D:\01_MyWorkTools\Repository\repository\org\springframework\springloaded\1.2.7.RELEASE\springloaded-1.2.7.RELEASE.jar"  -noverify

run asspring

相關文章
相關標籤/搜索