1. 程式人生 > >SpringBoot熱部署-2

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目錄下修改程式碼 不需要要重新啟動專案。但是好像並不是所有情況都試用但是的確節省了大量時間