parent
spring-boot-starter-parent
spring-boot-starter-web
spring-boot-maven-plugin
@SpringBootApplication
SpringApplication.run(xxx.class,args);
1.直接运行java类
2.mvn spring-boot:run
3.mvn package 然后java -jar
mvn dependency::tree
java -jar *.jar –spring.profiles.active=test
springboot-jdbc
@EnableConfigurationProperties
@Configuration
@EnableTransactionManagement
@PropertySource(value = {“classpath:config/source.properties”})
EnableAutoConfiguration 帮助我们做了什么