The road SpringBoot (6) -SpringBoot thermal deploy, modify the code more liking

Hot deployment is valid

Tomcat Web project to do with the previous tests are not annoying, and sometimes modify the code, you need to re-deploy code to Tomcat, then restart Tomcat. To be honest, I'm sick of it.

Spring Boot, Boot is a fast startup, is characterized by rapid, marked by the start of the, how not to solve such annoying startup problems.

Spring Boot can use hot deployment, and then modify the code when you save, automatically re-deploy, this is simply Shuangwai for developers.

So put that out Laijiangjiang facilitate them to learn and use.

Method to realize

Too simple, added directly dependent on

		<!-- 热部署 -->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
		</dependency>

At this point you modify the code, after Ctrl + S to save the project automatically discover changes, and then automatically restart.

Note IDEA tools also need to set up automatic compile because IDEA is not enabled by default through the automatic compilation of

Published 397 original articles · won praise 270 · views 550 000 +

Guess you like

Origin blog.csdn.net/woshisangsang/article/details/104530589