spring-boot-note

1

java配置和注解配置相结合,不需要任何的xml配置即可

2

spring tool suite

3

src/main/resources/banner.txt
http://patorjk.com/software/taag

4

application.properties
config/author.properties===> @ConfigurationProperties(prefix = "author", locations = { "classpath:config/author.properties"})

@Component
public class AuthorSettings{}

5

mvn spring-boot:run

6

profile
application.properties
application-dev.properties
application-prod.properties

spring.profiles.active=prod

7

debug
java -jar xx.jar --debug
application.properties, debug=true

8

自动配置
spring.factories

posted @ 2016-10-19 10:18  蚂蚁都督  阅读(220)  评论(0编辑  收藏  举报