随笔分类 -  Idea

摘要:开发过程中,通过idea提交代码到git时,出现误提交或者其他情况,但是没有推送(push),想撤销刚刚提交的代码(这里是提交的所有代码) 解决办法: reset head : To commit : 回退上个版本,使用 HEAD^ or HEAD~1 一次类推 HEAD~2 表示撤销最后两次提交; 阅读全文
posted @ 2023-05-29 16:47 唏嘘- 阅读(4142) 评论(0) 推荐(0) 编辑
摘要:1、File-->Setting-->Compiler--> build process heap size 阅读全文
posted @ 2023-04-04 10:41 唏嘘- 阅读(485) 评论(0) 推荐(0) 编辑
摘要:1、新项目再Idea里面启动的时候, 有的时候报错Error running ‘Application’: Command line is too long. Shorten command line for Application or aalso for Spring Boot default 阅读全文
posted @ 2021-08-04 11:56 唏嘘- 阅读(3344) 评论(0) 推荐(0) 编辑
摘要:1、使用git bash替换原有terminal 2、在Idea中配置Maven,如下图 3、配置maven用户变量 4、然后重启Idea,看在terminal中是否能执行mvn命令,如果还是不能执行,则执行如下步骤 阅读全文
posted @ 2021-08-04 11:12 唏嘘- 阅读(278) 评论(0) 推荐(0) 编辑
摘要:File > Setting > Editor > General > Auto Import Add unambiguous imports on the fly:自动帮我们优化导入的包 Optimize imports on the fly:自动去掉一些没有用到的包 阅读全文
posted @ 2021-07-16 09:38 唏嘘- 阅读(1490) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示