eclipse配置工作空间

配置JDK

Window -- Preferences -- Java -- Installed JREs -- Add -- Standard VM -- Directory -- 浏览自己安装的JDK文件夹,选中JDK这一层


配置Compiler编译器

Window -- Preferences -- Java -- Compiler -- Compiler compliance settings -- 尽量和JDK版本统一(至少1.5以上)


配置tomcat服务器

Window -- Preferences -- Server -- Runtime Environments -- Add -- 选择对应的版本 -- Next -- JRE -- 选中自己配置的JDK -- Browse... -- 找到自己的tomcat目录

Servers视图中右键 -- new -- Server -- 选择对应版本的tomcat服务器 -- Finish

Servers视图中双击新建的tomcat:

1.Server Loactions中设置输出目录为tomcat下的webapps,避免成功启动服务器后访问报404问题。

   选择Use Tomcat installation(takes control of Tomcat installation),Deploy path中设置为tomcat下的webapps目录

2.Ports中设置三个端口号,避免相同端口号发生冲突。

3.Timeouts中设置tomcat启动时间和停止时间。


配置WorkSpace工作空间默认编码为UTF-8

Window -- Preferences -- General -- WorkSpace -- Text file encoding -- UTF-8


配置JSP编码为UTF-8

Window -- Preferences -- Web -- JSP Files -- Encoding: -- 选择UTF-8


配置properties编码为UTF-8

Window -- Preferences -- General -- Content Types -- Text -- 选中Java Properties File -- 选择*.properties(locked) -- 修改Default encoding为UTF-8 -- update -- OK


配置控制台不自动弹出和不自动分页

Window -- Preferences -- Run/Debug -- Console

Limit console output 取消勾选

Show when program writes to standard out 取消勾选

Show when program writes to standard error 取消勾选


配置maven settings

Window -- Preferences -- Maven -- User Settings -- User Settings(open fiile) -- Browse... -- 选择到自己maven的setting.xml配置文件


配置字体大小

Window -- Preferences -- General -- Appearance -- Colors and Fonts -- Basic -- Text Font -- 选择字体和大小


配置背景颜色

Window -- Preferences -- General -- Editors -- Text Editors -- Background Color -- Color -- 选择颜色

建议 色调改为85,饱和度改为123,亮度改为205


配置注释模版

Window -- Preferences -- Java -- Code Style -- Code Templates -- Import -- 选择自己的模版


配置svn忽略文件

Window -- Preferences -- Team -- Ignored Resources -- Add Pattern... -- 添加自己要忽略的文件后缀(*/target/*   .classpath   .project   .settings)

猜你喜欢

转载自blog.csdn.net/github_39325328/article/details/77533906