一、JDK位置
每台机器允许多个jdk版本存在,编译时选择需要使用的jdk即可。MyEclipse-->Properties-->Java-->Installed JRES选择jdk位置
二、文件编码
①window-->preference-->general-->content type,展开每一项并在Default encoding中输入UTF-8并点击update按钮
②window-->preference-->MyEclipse-->Files and Editors,例如将JSP项的Encoding改为ISO 10645/Unicode(UTF-8)
三、文件默认打开方式
windows->Preferences->General->Editors->File Associations,将默认打*.jsp的editor关联设置为需要的工具
四、取消拼写检查
window-->preferences-->general-->text editor-->spelling 取消enable spell checking后重新编译即可
五、调整代码格式
window-->preferences-->Java-->Code Style-->Formatter
根据习惯调整代码格式,可以使以前导出的代码格式文件的xml
六、字体设置
window-->preferences-->general-->Appearance-->Colors and Fonts -->Basic --> Text Font点击Edit进行修改
七、Tomcat位置
①MyEclipse-->Servers-->Tomat6.X指定Tomcat解压位置
②MyEclipse-->Servers-->Tomat6.X-->JDK指定JDK位置
八、maven位置
①安装maven
1 下载地址:maven.apache.org,解压
2 配置环境变量:新增M2_HOME:E:\maven\apache-maven-3.1.1,添加path:E:\\maven\apache-maven-3.1.1\bin
3 将maven的conf中的settings.xml文件拷贝出来,放到任意位置,并在文件中指定本地仓库位置
②IDE中配置maven
在MyEclipse或STS中配置maven是一样的:
preference-->maven-->Installations选择解压的maven目录(不用内嵌的maven)
preference-->maven-->User Settings-->选择放在任意位置的settings.xml(该文件从maven/conf里面拷贝出来,修改本地仓库地址)
作者:woshixuye