SpringBoot註解與啓動與配置文件介紹(2)

1:@SpringBootApplication 主要由下面的三個註解構成: @SpringBootConfiguration :本質就是一個 @Configuration,代表是spring容器的主配置類; @EnableAutoConfiguration:開啓自動配置,springboot 使用這個標籤自動的把內置的符合條件的@configuration類 加載進入應用。 @Component
相關文章
相關標籤/搜索