idea常用设置

133 阅读1分钟

一、idea集成tomcat

idea集成tomcat步骤:

打开 run——> edit configurations 选择 Tomcat Server——>Local 点击 configure... 添加 tomcat 安装路径 打开最左边加号 选择tomcat安装路径

idea集成tomcat后控制台输出乱码问题:

help——>Edit Custom VM Options 在最后行添加 -Dfile.encoding=UTF-8 file ——> Invalidate Caches / restart... 重启idea

二、配置全局设置

file——>other Settings——>settings for new project

三、配置模板

file——>settings——>Editor——>file and code templates——>other

四、配置动态模板

file——>settings——>Editor——>Live Templates
#点击加号选择Template Group 模板组,给模板组取个名字
#在选中模板组名称  点击加号  点击 Live Template

五、@Autowired报错的解决方法

file——>settings——>Editor——>Inspections——>Spring——>Spring Core——>Code——>

#Autowiring for Bean Class
#把Error改为Warning