您好,欢迎访问一九零五行业门户网

Idea中Springboot热部署无效怎么解决

一、开启idea自动make功能
1 - enable automake from the compiler
press: ctrl + shift + a
type: make project automatically
press: enter
enable make project automatically feature
2 - enable automake when the application is running
press: ctrl + shift + a
type: registry
find the key compiler.automake.allow.when.app.running and enable it
note: restart your application now
两步:
1、ctrl + shift + a --> 查找make project automatically --> 选中
2、ctrl + shift + a --> 查找registry --> 找到并勾选compiler.automake.allow.when.app.running
当然了,要在pom.xml中添加上 spring开发工具包
<dependency>      <groupid>org.springframework.boot</groupid>      <artifactid>spring-boot-devtools</artifactid>      <optional>true</optional> <!-- 这个需要为 true 热部署才有效 -->      <scope>runtime</scope> </dependency>
在idea中开启自动编译:
以上就是idea中springboot热部署无效怎么解决的详细内容。
其它类似信息

推荐信息