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

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);
}
}
主站蜘蛛池模板: 石嘴山市| 邢台县| 巴林左旗| 铜陵市| 桦南县| 本溪| 金乡县| 淮南市| 昌都县| 宜春市| 阳城县| 大英县| 沙湾县| 武义县| 阳谷县| 彭水| 迁西县| 灌云县| 昭通市| 九台市| 二连浩特市| 攀枝花市| 高雄市| 辽阳市| 临朐县| 扬中市| 静海县| 兴山县| 石门县| 襄城县| 象山县| 文水县| 昌都县| 陆良县| 惠州市| 浮梁县| 逊克县| 紫阳县| 吴川市| 黄骅市| 乌鲁木齐市|