mrt*_*sln 6 spring-boot spring-boot-devtools
我在我的项目中使用 spring boot devtools。当我写
System.out.println("test");
Run Code Online (Sandbox Code Playgroud)
在 main 之前,它在控制台中打印两次。
public static void main(String[] args) {
System.out.println("test");
SpringApplication.run(TestApplication.class, args);
}
Run Code Online (Sandbox Code Playgroud)
当我删除
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
Run Code Online (Sandbox Code Playgroud)
在 pom.xml 文件中,它打印一次
| 归档时间: |
|
| 查看次数: |
832 次 |
| 最近记录: |