解决IDEA maven 项目修改代码不生效,mvn clean、install后才生效
作者:回归心灵 时间:2022-06-19 12:17:06
现象
正常情况下修改完代码,运行项目就会立即生效的。但是突然有一天发现运行的还是老的代码,新代码根本没有生效。通过 mvn clean、 install 后,再运行就可以了,但是这样明显是不正常的,而且也非常麻烦。
解决方案
重新 import project 导入项目,就可以解决问题。
补充知识:idea中对maven进行clean,install等操作
1、点击右侧maven
2、点击弹出来的项目
来源:https://blog.csdn.net/u010657094/article/details/101287124
标签:IDEA,maven,mvn,clean,install
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
maven scope provided和runtime的例子说明
2023-04-28 02:15:00
![](https://img.aspxhome.com/file/2023/5/88075_0s.jpg)
spring事务之事务挂起和事务恢复源码解读
2023-11-26 18:50:42
![](https://img.aspxhome.com/file/2023/7/70357_0s.png)
Android之禁止ViewPager滑动实现实例
2022-03-17 23:55:40
![](https://img.aspxhome.com/file/2023/0/88100_0s.jpg)
深入理解Java显式锁的相关知识
2022-06-16 09:59:41
java实现多人聊天室可视化
2021-08-27 01:16:49
![](https://img.aspxhome.com/file/2023/0/79180_0s.jpg)
springBoot整合redis使用案例详解
2022-07-02 10:51:33
![](https://img.aspxhome.com/file/2023/9/75659_0s.png)
springboot vue 跨域问题的解决
2023-01-26 00:53:57
WPF应用启动慢的问题解决
2021-09-07 23:14:01
Java实现的傅里叶变化算法示例
2021-12-08 18:04:24
Android实现无标题栏全屏的方法
2023-06-25 11:14:27
flutter实现扫码枪获取数据源禁止系统键盘弹窗示例详解
2023-07-23 01:52:41
![](https://img.aspxhome.com/file/2023/0/96760_0s.webp)
Java算法设计与分析分治算法
2022-04-02 08:07:15
![](https://img.aspxhome.com/file/2023/9/92549_0s.png)
使用HTTPclient保持长连接
2023-10-17 12:29:34
![](https://img.aspxhome.com/file/2023/9/64109_0s.png)
简单谈谈java的异常处理(Try Catch Finally)
2021-08-01 12:40:02
Android之获取手机内部及sdcard存储空间的方法
2022-11-11 13:10:18
SpringBoot重写addResourceHandlers映射文件路径方式
2022-05-26 19:02:40
![](https://img.aspxhome.com/file/2023/3/66183_0s.jpg)
Java MapStruct解了对象映射的毒
2022-08-20 11:37:12
![](https://img.aspxhome.com/file/2023/5/86865_0s.png)
使用SpringBoot打jar包并部署到Tomcat详细步骤
2023-12-06 07:15:16
![](https://img.aspxhome.com/file/2023/2/73132_0s.png)
Java 设计模式之责任链模式及异步责任链详解
2021-08-08 19:14:23
![](https://img.aspxhome.com/file/2023/9/72639_0s.png)
java根据模板导出PDF的详细实现过程
2022-04-07 21:48:52
![](https://img.aspxhome.com/file/2023/6/77346_0s.png)