intellij idea to build SpringBoot

1. Install mavn set the download link in settings.xml

 

<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>

Set maven association idea

2. Create a new project

Write Controller

Add starter web references, you can use spring boot comes with tomcat

Change tomcat port

Startup project

 

 

Guess you like

Origin www.cnblogs.com/dongjh/p/11124793.html