SpringBoot热部署-2

<plugins>
	<!-- springBoot热部署 -->
		<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>
	</plugins>

关于热部署解释:暂可理解为,src目录下修改代码 不需要要重新启动项目。但是好像并不是所有情况都试用但是的确节省了大量时间

猜你喜欢

转载自blog.csdn.net/L_Person/article/details/84585782
今日推荐