@ComponentScan(value="wang.bigbird.domain.framework.web.core") @Configuration public class WebCoreConfiguration extends Object
构造器和说明 |
---|
WebCoreConfiguration() |
限定符和类型 | 方法和说明 |
---|---|
org.springframework.core.task.AsyncTaskExecutor |
asyncTaskExecutor() |
org.springframework.web.filter.CorsFilter |
corsFilter(CorsProperties corsProperties) |
org.springframework.core.convert.converter.Converter<String,Date> |
dateConverter()
Date转换器,用于转换RequestParam和PathVariable参数
千万不要试图转为 lambda 表达式!
|
void |
init() |
org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer |
jackson2ObjectMapperBuilderCustomizer() |
org.springframework.core.convert.converter.Converter<String,java.time.LocalDate> |
localDateConverter()
LocalDate转换器,用于转换RequestParam和PathVariable参数
千万不要试图转为 lambda 表达式!
|
org.springframework.core.convert.converter.Converter<String,java.time.LocalDateTime> |
localDateTimeConverter()
LocalDateTime转换器,用于转换RequestParam和PathVariable参数
千万不要试图转为 lambda 表达式!
|
org.springframework.core.convert.converter.Converter<String,java.time.LocalTime> |
localTimeConverter()
LocalTime转换器,用于转换RequestParam和PathVariable参数
千万不要试图转为 lambda 表达式!
|
@PostConstruct public void init()
@Bean(value="asyncTaskExecutor") public org.springframework.core.task.AsyncTaskExecutor asyncTaskExecutor()
@Bean @Primary public org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer jackson2ObjectMapperBuilderCustomizer()
@Bean public org.springframework.core.convert.converter.Converter<String,java.time.LocalDate> localDateConverter()
@Bean public org.springframework.core.convert.converter.Converter<String,java.time.LocalDateTime> localDateTimeConverter()
@Bean public org.springframework.core.convert.converter.Converter<String,java.time.LocalTime> localTimeConverter()
@Bean public org.springframework.core.convert.converter.Converter<String,Date> dateConverter()
@Bean @ConditionalOnProperty(prefix="bigbird.web.core.cors", name="enable", havingValue="true") @ConditionalOnMissingBean(value=org.springframework.web.filter.CorsFilter.class) public org.springframework.web.filter.CorsFilter corsFilter(CorsProperties corsProperties)