1 Overview
- Learning Spring MVC, how to trigger a controlled restart
2. Background
- Learning Spring
- Scenes
- In some cases, completely change the class, you need to restart
- Have heard before, Spring MVC can automatically restart
- So I would like to try it and see how to configure
- Scenes
3. Environment
- the
- win10
- jdk
- 1.8
- here
- east 2018.1
- spring
- spring boot
- 2.1.7 release
- Package
- thymeleaf
- starter-web
- devtool
- starter-test
- spring boot
- browser
- firefox
- 70.0
- firefox
- ref
- spring in action 5th
4. Configure
- application.properties
- Outline
- Spring modify configuration files
content
# 添加内容 spring.devtools.restart.enabled=true
- trigger
- As long as the modified compiler can trigger
- ctrl + f9
- As long as the modified compiler can trigger
- Outline
- other
- Idea may also be arranged behind autobuilder
- But I think, or forget
- You are a slacker, you are not or manually trigger it?
- Shutdown and restart is also okay shortcuts
- But I think, or forget
- Idea may also be arranged behind autobuilder
- Be explain it
- Restart Devtools next Spring Boot
- Restart
- This restart, first of all much more quickly than restart
- Because Spring class loader with two
- Restart, then only one restart, just in general is that Java code
- This restart, first of all much more quickly than restart
- Restart
- Automatic compilation
- This frequency may sometimes be less good control
- time
- Storage
- But if I want to change multiple files at once, and then restart
- Is not the case, there will be more to restart a few times ...
- If the project is large, it will not be too much trouble
- This frequency may sometimes be less good control
- Restart Devtools next Spring Boot
ps
- Or give yourself a task
- Available configurations automatically compile the idea, learn a science