- Hands-On Full Stack Development with Spring Boot 2.0 and React
- Juha Hinkula
- 120字
- 2021-06-25 21:00:21
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);
}
}
推薦閱讀
- Apache ZooKeeper Essentials
- 構建移動網站與APP:HTML 5移動開發入門與實戰(跨平臺移動開發叢書)
- Unity Virtual Reality Projects
- PyTorch Artificial Intelligence Fundamentals
- The React Workshop
- Python程序設計案例教程
- Web Application Development with MEAN
- 名師講壇:Java微服務架構實戰(SpringBoot+SpringCloud+Docker+RabbitMQ)
- Python數據分析從0到1
- 小學生C++創意編程(視頻教學版)
- Building Android UIs with Custom Views
- 軟件測試實用教程
- 零基礎看圖學ScratchJr:少兒趣味編程(全彩大字版)
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- 分布式架構原理與實踐