从零开始学习springBoot(Contextpath+修改默认idk)
1.配置Contextpath
修改application.properties文件:添加server.context-path=/spring-boot 之后需要访问http://127.0.0.1:9090/spring-boot/demo/getDemo
2.修改默认的idk版本
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
学习来源http://412887952-qq-com.iteye.com/blog/2291542