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

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);
}
}
主站蜘蛛池模板: 响水县| 东丰县| 罗田县| 甘德县| 改则县| 托克托县| 南阳市| 噶尔县| 木里| 新昌县| 全州县| 都匀市| 吐鲁番市| 瑞昌市| 胶州市| 当涂县| 丰城市| 松江区| 年辖:市辖区| 虹口区| 石台县| 芮城县| 元江| 横山县| 彭山县| 永安市| 禄劝| 五华县| 朔州市| 会泽县| 仁化县| 台州市| 木里| 白水县| 沂南县| 应用必备| 定日县| 蓬莱市| 通州区| 荣成市| 固原市|