Spring-Tools-Suite-4(STS4) 配置
JDK配置
Window->Preferences
搜索JRE选取jdk
Maven库配置文件
创建txt文件,复制下列代码到文件中,文件重命名为settings.xml
1 <?xml version="1.0" encoding="UTF-8"?> 2 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> 5 6 <!-- 本地maven库 --> 7 <localRepository>D:\DxOffice\repository</localRepository> 8 9 <!-- 中央maven库 --> 10 <mirrors> 11 <mirror> 12 <id>nexus-aliyun</id> 13 <mirrorOf>*</mirrorOf> 14 <name>Nexus aliyun</name> 15 <url>http://maven.aliyun.com/nexus/content/groups/public</url> 16 </mirror> 17 </mirrors> 18 19 </settings> 20 <!-- 配置:Preferences -> Maven -> User Settings -> User Settings -->
Window-Preferences
搜索maven,修改Maven下User Settings下的User Settings路径到settings.xml所在路径
统一编码方式
Window->Preferences
Project
工程(Project):
Properties-Resource->Text file encoding
文件:
Properties-Resource->Text file encoding