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>