“Spring Boot 自动配置图示”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
第1行: | 第1行: | ||
{| class="wikitable" | {| class="wikitable" | ||
− | |@SpringBootApplication | + | ! colspan="3" |@SpringBootApplication |
+ | |- | ||
+ | |@SpringBootConfiguration | ||
+ | |@EnableAutoConfiguration | ||
+ | |@ComponentScan(excludeFilters = { | ||
+ | @Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class), | ||
+ | |||
+ | @Filter(type = FilterType.CUSTOM, classes = AutoConfigurationExcludeFilter.class) | ||
+ | |||
+ | }) | ||
|- | |- | ||
+ | | | ||
+ | | | ||
| | | | ||
|- | |- | ||
| | | | ||
− | | | + | | |
| | | | ||
|} | |} |
2023年3月1日 (三) 10:33的版本
@SpringBootApplication | ||
---|---|---|
@SpringBootConfiguration | @EnableAutoConfiguration | @ComponentScan(excludeFilters = {
@Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class), @Filter(type = FilterType.CUSTOM, classes = AutoConfigurationExcludeFilter.class) }) |