mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Make all @Bean methods public
Fixes gh-1571
This commit is contained in:
parent
9e9e450211
commit
611f978181
@ -133,7 +133,7 @@ public class MetricRepositoryAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(name = "metricsExecutor")
|
||||
protected Executor metricsExecutor() {
|
||||
public Executor metricsExecutor() {
|
||||
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
||||
return executor;
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ public class ThymeleafAutoConfiguration {
|
||||
}
|
||||
|
||||
@Bean
|
||||
protected SpringResourceResourceResolver thymeleafResourceResolver() {
|
||||
public SpringResourceResourceResolver thymeleafResourceResolver() {
|
||||
return new SpringResourceResourceResolver();
|
||||
}
|
||||
}
|
||||
|
@ -294,7 +294,7 @@ public class WebMvcAutoConfiguration {
|
||||
}
|
||||
|
||||
@Bean
|
||||
protected ResourceHttpRequestHandler faviconRequestHandler() {
|
||||
public ResourceHttpRequestHandler faviconRequestHandler() {
|
||||
ResourceHttpRequestHandler requestHandler = new ResourceHttpRequestHandler();
|
||||
requestHandler.setLocations(Arrays
|
||||
.<Resource> asList(new ClassPathResource("/")));
|
||||
|
Loading…
Reference in New Issue
Block a user