1.在application.properties中禁用模板引擎缓存

比如freemarker:spring.freemarker.cache=false

2.在pom.xml中添加依赖

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>

3.修改IEDA设置

1)打开 Settings --> Build-Execution-Deployment --> Compiler,将 Build project automatically.勾上

2)Ctrl+Shift+A来打开Registry...,将 其中的compiler.automake.allow.when.app.running勾上。

3)重启idea

现在你就不必每次都手动的去点停止和启动了。

相关文章:

  • 2021-04-03
  • 2021-08-22
  • 2021-10-19
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
猜你喜欢
  • 2021-08-19
  • 2021-11-02
  • 2021-07-27
  • 2021-10-22
  • 2021-10-13
  • 2021-10-20
  • 2021-09-30
相关资源
相似解决方案