官术网_书友最值得收藏!

Spring Boot development tools

Spring Boot development tools make the application development process simpler. Projects will include the developer tools if the following dependency is added to the Maven pom.xml file:

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope>
</dependency>

Development tools are disabled when you create a fully-packed production version of your application.

The application is automatically restarted when you make changes to your project's classpath files. You can test that by adding one comment line to your main class: 

package com.packt.cardatabase;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class CardatabaseApplication {

public static void main(String[] args) {
// After adding this comment the application is restarted
SpringApplication.run(CardatabaseApplication.class, args);
}
}

After saving the file, you can see in the console that the application has restarted.

主站蜘蛛池模板: 平和县| 公主岭市| 抚顺县| 江门市| 旬阳县| 景泰县| 太仆寺旗| 柘城县| 连平县| 建宁县| 科技| 天峻县| 庄河市| 岳阳市| 周宁县| 寿阳县| 曲靖市| 武川县| 铜梁县| 昆山市| 宣威市| 沛县| 溆浦县| 股票| 大悟县| 桃园市| 五河县| 嘉义县| 双牌县| 南漳县| 固原市| 龙川县| 临沂市| 江北区| 高平市| 长汀县| 蛟河市| 罗源县| 习水县| 佛冈县| 饶河县|