1.eclipse设置默认编码格式为UTF-8
需要设置的几处地方为:
Window->Preferences->General ->Content Type->Text->JSP 最下面设置为UTF-8
Window->Preferences->General->Workspace 面板Text file encoding 选择UTF-8
Window->Preferences->Web->JSP Files 面板选择 ISO 10646/Unicode(UTF-8)
2.eclipse 设置自动提示
Window->Preferences->java->editor->content Assist->面板 Auto Activation 下 Auto activation triggers for java
把点号(.)替换为26个英文字母