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

Spring Boot development tools

Spring Boot development tools make the application development process easier. 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 classpath files. You can test that by adding one comment line to your main class. After saving the file, you can see in the console that the application has restarted:

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);
}
}
主站蜘蛛池模板: 永仁县| 伊春市| 泽州县| 板桥市| 黄平县| 新兴县| 南召县| 木兰县| 错那县| 醴陵市| 尚志市| 德安县| 南丹县| 金沙县| 肥西县| 靖西县| 得荣县| 资中县| 渑池县| 保定市| 轮台县| 米林县| 白玉县| 枝江市| 德昌县| 五华县| 泰顺县| 伊春市| 平利县| 东阿县| 铁力市| 连江县| 五华县| 康定县| 桐乡市| 鲁甸县| 海原县| 南充市| 赫章县| 白朗县| 阿图什市|