【eclipse】使用说明

一. 设置jdk版本

  1. Window->Preferences->Java->Installed JREs,选择jdk安装目录;

  2. Window->Preferences->Java->Compiler,选择jdk版本。

二. 设置tomcat

  1. Window->Preferences->Server>Runtime Environments,选择tomcat安装目录;

  2. 如在eclipse安装了tomcat插件,则需进行以下设置:

  • Window->Preferences->Tomcat,设置tomcat版本和安装目录;
  • 通过Window->Preferences->Tomcat->Advanced,部署项目。

三. 常规设置

  1. 设置字符编码:

    Window->Preferences->General->Workspace;设置text file encoding编码为UTF-8。

  2. 设置jsp编码:

    Window->Preferences->Web->JSP Files;设置encoding编码为UTF-8。

  3. 设置字体大小和颜色

    Window->Preferences->General->Appearance->Color and Fonts;

原文地址:https://www.cnblogs.com/guoxh/p/8038127.html