Eclipse下新建Workspace(工作空间)后的基本配置

时间:2021-11-01 11:44:45

1、 Window—》Preferences -> 搜索workspace -》找到General下的Workspace ,点击进去,左下角的Text file encoding :other UTF-8

2、 Window—》Preferences -> 搜索 jsp-> JSP Files ->Encoding: ISO 10646/Unicode(UTF-8)

3 、Window—》Preferences -> 搜索 ignored -> 找到Team下的 Ignored Resources -> Add Pattern 添加忽略

Eclipse下新建Workspace(工作空间)后的基本配置

4、 Window —> Preferences -> Server->Runtime Environments —> Tomcat目录位置(可以复制多个Tomcat目录,即存在多个Tomcat实例)

5、 Window —> Preferences -> 搜索maven —>找到maven下的 Installations —>
添加本机中的maven安装目录 C:\apache-maven-3.3.9
修改 C:\apache-maven-3.3.9\conf\settings.xml 中的下面这句,让地址指向maven仓库
C:\Users\rose\AppData\Roaming\feiq\Recv Files\API\mavenrepository\repository

6、 Window—》Preferences -> maven ->User Settings -> 填写完User Setting后,点击Update Settings, Local Repository会被自动填充。

7、Window —>show view—>maven Repositories—> Local Repositorys—>Local Repository, 鼠标右键选择 Rebuild index -> 可以看到Maven库中所有的jar包目录。
Eclipse下新建Workspace(工作空间)后的基本配置

保存工作空间模版:
为了避免每次创建工作空间都要重新设置,可以把这个配置好的工作空间作为一个模版,直接复制后就可作为新工作空间使用。
maven仓库的地址可以单独配置。

maven仓库可解压缩放到工作空间目录下。

Eclipse下新建Workspace(工作空间)后的基本配置

repository 是解压后的maven仓库。