1.隐藏.idea目录和iml文件:IDE Settings-File Types-Ignore files and folders-添加.idea;*.iml;
2.热部署方案1
①Settings->搜索compiler->勾选Build project automatically
②按ctrl+Shift+A 查找registry命令回车,在弹出面板中搜索automake,找到compiler.automake.allow.when.app.running并勾选
③添加spring boot Dev Tools支持
<dependencies>
<!--热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<!-- optional=true,依赖不会传递,该项目依赖devtools;之后依赖myboot项目的项目如果想要使用devtools,需要重新引入 -->
<optional>true</optional>
</dependency>
<!---热部署end-->
</dependencies>
④chrome禁用缓存:Network->Disable cache
3.热部署方案2
①.安装Jrebel 插件:settings->plugins->jrebel for interlij
②.打开Jrebel Panel,勾选需要的模块:点击左侧Jrebel
③.修改后按Ctrl + Shift + F9 重新编译
jrebel激活服务器:http://jrebel.autoseasy.cn/b136b623/b136b653-31f0-44ca-bbef-2eb5e58daf2b
http://139.199.89.239:1008/88414687-3b91-4286-89ba-2dc813b107ce
如果失效,重新生成url后面的guid即可
4.IntelliJ IDEA下"Cannot resolve symbol 'log'
①.用快捷键Ctrl+Alt+S打开:Settings→Plugins→Browse repositories
②.输入lombok后选择Install,安装插件
网友评论