1.安装mavn在settings.xml设置下载链接

intellij idea搭建SpringBoot

 

<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

在idea设置maven关联

intellij idea搭建SpringBoot

2.创建新项目

intellij idea搭建SpringBoot

intellij idea搭建SpringBoot

intellij idea搭建SpringBoot

intellij idea搭建SpringBoot

写Controller

intellij idea搭建SpringBoot

添加starter web引用,可以用spring boot自带的tomcat

intellij idea搭建SpringBoot

更改tomcat端口

intellij idea搭建SpringBoot

启动项目

intellij idea搭建SpringBoot

 

intellij idea搭建SpringBoot

 

相关文章: