1、JDK位置
每台机器容许多个jdk版本存在,编译时选择须要使用的jdk便可。MyEclipse—>Properties—>Java—>Installed JRES选择jdk位置
2、文件编码
①window—>preference—>general—>content type,展开每一项并在Default encoding中输入UTF-8并点击update按钮
②window—>preference—>MyEclipse—>Files and Editors,例如将JSP项的Encoding改成ISO 10645/Unicode(UTF-8)
3、文件默认打开方式
windows->Preferences->General->Editors->File Associations,将默认打*.jsp的editor关联设置为须要的工具
4、取消拼写检查
window—>preferences—>general—>text editor—>spelling 取消enable spell checking后从新编译便可
5、调整代码格式
window—>preferences—>Java—>Code Style—>Formatter
根据习惯调整代码格式,能够使之前导出的代码格式文件的xml
6、字体设置
window—>preferences—>general—>Appearance—>Colors and Fonts —>Basic —> Text Font点击Edit进行修改
7、Tomcat位置
①MyEclipse—>Servers—>Tomat6.X指定Tomcat解压位置
②MyEclipse—>Servers—>Tomat6.X—>JDK指定JDK位置
8、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里面拷贝出来,修改本地仓库地址)apache