maven下载地址:https://maven.apache.org ,下载解压即可,将bin文件路径加到环境变量path中即可,命令行mvn -v 显示版本信息即安装成功
tomcat下载地址:https://tomcat.apache.org 解压即用,不要下载版本10,7、8、9均可.
Springboot的eclipse插件:直接在eclipse里面下吧,搜索sts一般就出来了,一键安装就行
maven配置:
打开配置文件:settings.xml
加上jar包本地存储位置
<localRepository>F:\workspace\maven\maven store</localRepository>
加上jar包下载仓库,该文件所有的注释都是例子,可仿照写
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<!-- ali -->
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<!-- store1 -->
<mirror>
<id>repo1</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo1.maven.org/maven2/</url>
</mirror>
<!-- store2 -->
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
</mirrors>
在 <profiles> </profiles> 里加入jdk版本信息
<profile>
<id>JDK-1.8</id>
<activation>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
maven加入到eclipse
- 打开eclipse首选项,找到maven/Archetypes,选中bin\archetype-catalog.xml即可
- 下面有一个安装installations,把maven安装位置添加上去即可,打上勾,其他不打勾
- 在下面有user settings,选中maven配置文件setting.xml,下边一个同样,点一下更新,最下边一个位置应该自动读取。
tomcat加入eclipse
首选项中找到 服务/运行环境,加入安装位置即可