Idea中Springboot热部署无效问题解决
2020-03-24 07:07
971 查看
这篇文章主要介绍了Idea中Springboot热部署无效问题解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
仅适用IDEA中,eclipse中不需要设置
一、开启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中开启自动编译:
以上就是本文的全部内容,希望对大家的学习有所帮助
您可能感兴趣的文章:
相关文章推荐
- 关于springBoot项目在IDEA中热部署问题
- spring boot热部署 关于Idea不好使的问题
- Spring Boot + Java爬虫 + 部署到Linux(四、使用WebSocket实现消息推送,并解决websocket中的autowired问题)
- SpringBoot 断点调试无效问题解决
- IntelliJ IDEA中Spring Boot项目使用spring-boot-devtools无法实现热部署/热更新的问题解决
- 解决Idea启动Spring Boot很慢的问题
- 解决spring boot swagger ui使用 nginx 部署后无法使用问题
- Idea中SpringBoot中热部署devtools无效解决方案
- JAVA IIntelliJ IDEA(2)-----使用Spring-boot-devTools无效解决办法
- spring boot 用war包部署到tomcat下详细教程(解决缺少web.xml报错的问题)
- idea使用spring-boot-devtools无效解决办法
- IntelliJ IDEA+SpringBoot+Tomcat部署404问题
- Idea打包springboot项目jar包,运行报找不到主清单属性或找不到主类问题解决方法。
- 解决Springboot中给Interceptor配置的excludePathPatterns无效的问题
- idea+HBuilderX实现springboot+springdata-jpa+vue+axios前后端分离增删改查,分页+解决跨域问题的idea页面
- spring-boot集成mybatis问题1:IntellijIdea中j解决自动生成代码xml配置文件中出现“uri is not registered”问题
- SpringBoot:使用spring-boot-devtools进行热部署不生效的问题解决方法
- idea 打包Spring boot项目,解决检查数据库连接导致无法打包的问题
- 多种方式解决spring boot swagger ui使用 nginx 部署后无法使用问题
- 解决Intellij IDEA 使用Spring-boot-devTools无效的问题