idea配置热部署

IDEA配置热部署

Spring Boot Devtools(推荐)

– 引入依赖

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

– IDEA使用ctrl+F9
– 或做一些小调整
Intellij IEDA和Eclipse不同, Eclipse设置了自动编译之后,修改类它会自动编译,而IDEA在非RUN或DEBUG情况下
才会自动编译(前提是你已经设置了Auto-Compile)。
• 设置自动编译(settings-compiler- Build project automatically)
• ctrl+shift+alt+/(maintenance) — registry — 勾选compiler.automake.allow.when.app.running