Spring Tool Suite 配置和使用

时间:2022-03-26 16:38:14

Spring Tool Suite使用

1.下载地址: http://spring.io/tools

2.配置字符编码:UTF-8

默认的编码是ISO-8859-1的西欧文字编

1、windows--perferences--general--workspace,Text file encoding设置成utf-8

2、windows--perferences--general--content types,把里面text的default encoding  update成utf-8

3、windows--perferences--web--jsp files,把这里的encoding设置成utf-8

4、项目的pom.xml里面增加一个配置 project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

3.调整字体

Window - Preferences - General - Appearance - Colors and Fonts

4.安装SVN

Help - Install New Software - Add

http://subclipse.tigris.org/update_1.8.x

全选下载安装完成之后重启STS即可5.集成tomcat

Window - Preferences - Server - Runtime Environment - Add

6.集成的过程出了个问题:可以安装8.0的版本 但是这个tomcat 版本是8.5.6

The Apache Tomcat installation at this directory is version 8.5.6.  A Tomcat 8.0 installation is expected.

7.因为SVN上传的项目不是很规范的maven项目  导致down下来变普通java项目:

右击项目 - configure - convert to Plug-in projects

8.导入code模版

Window - Preferences - Java - Code Style - Code Template - Comments - Import