Eclipse改UTF-8
Window->Preferences->General->Workspace->Text file Encoding
Eclipse配置tomcat和JDK
1. windows-preferences->server->runtime environment, 添加tomcat和jdk
2. 项目移除旧的jdk,添加自己的
右键project,properties,Java Build Path,选中Unbound的哪个JRE,Remove!
改为自己机器上安装的JRE,
同样在Java Build Path下,Add Library,JRE System Library,Next,我选的Workspace default JRE(jdk...),网上也有说的选第二个也行,就是Alternate JRE