當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
Spring boot程序入口
生活随笔
收集整理的這篇文章主要介紹了
Spring boot程序入口
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
@SpringBootApplication
用來標注一個主程序類
說明,這是一個Spring boot應用
這個類是主配置類
通過運行這個類的main方法,來啟動SpringBoot應用
點擊,進入
@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited @SpringBootConfiguration @EnableAutoConfiguration @ComponentScan(excludeFilters = {@Filter(type = FilterType.CUSTOM,classes = {TypeExcludeFilter.class} ), @Filter(type = FilterType.CUSTOM,classes = {AutoConfigurationExcludeFilter.class} )} ) public @interface SpringBootApplication {是一個組合注解
這里,每一個注解,都有特殊的用途
總結
以上是生活随笔為你收集整理的Spring boot程序入口的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Spring boot的场景启动器
- 下一篇: Spring boot容器导入组件