1. 程式人生 > >Spring Tool Suite 配置和使用

Spring Tool Suite 配置和使用

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

以上轉自:https://www.cnblogs.com/sun-rain/p/6278346.html

補充:不夠用SVN ,改用git ;