springboot1

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 帮助我们做了什么

猜你喜欢

转载自blog.csdn.net/beyondxiaohu15/article/details/80895113
今日推荐