1. Maven配置:
配置单独的maven环境。修改 conf/setting.xml 增加如下JDK11的配置 :
<localRepository>D:\Develop\java\maven_repository</localRepository>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<profile>
<id>jdk-11</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>11</jdk>
</activation>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.compilerVersion>11</maven.compiler.compilerVersion>
</properties>
</profile>
2. 需求描述
浏览器发送 /hello 请求,响应返回 hello springboot 2
IDEA配置找到,我们自建的Maven