学习Spring boot starter(1)——hello world

1.练习教程
https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#getting-started

2.需要:
java 1.7及以上;
maven 安装及配置环境变量

3.我使用的IDE——intelliJ IDEA
首先,新建一个maven项目,初始配置参考教程中的pom.xml信息:
学习Spring boot starter(1)——hello world

4.auto_config理解
学习Spring boot starter(1)——hello world

作用:
学习Spring boot starter(1)——hello world

5.maven 启动项目时报错:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
解决方法:1)在intelliJ中把maven的jdk配置都换成本地的jdk路径
2)重新编译这个文件,再使用maven启动项目即可

学习Spring boot starter(1)——hello world