Package org.openwms.common.app
Class CommonModuleConfiguration
java.lang.Object
org.openwms.common.app.CommonModuleConfiguration
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@RefreshScope
@EnableAspects(propagateRootCause=true)
@EnableAspectJAutoProxy(proxyTargetClass=true)
@EnableCaching
@EnableConfigurationProperties
@EnableIdentityAwareness
@EnableSpringConfigured
@EnableJpaAuditing
@EnableEnversRepositories
@EnableJpaRepositories(basePackages="org.openwms",
repositoryFactoryBeanClass=org.springframework.data.envers.repository.support.EnversRevisionRepositoryFactoryBean.class)
@EntityScan(basePackages="org.openwms")
@EnableMultiTenancy
@EnableTransactionManagement
@Import(org.openwms.core.app.JSONConfiguration.class)
public class CommonModuleConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
A CommonModuleConfiguration.
- Author:
- Heiko Scherrer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) jakarta.servlet.Filterorg.springframework.web.servlet.i18n.LocaleChangeInterceptororg.springframework.web.servlet.LocaleResolverorg.springframework.context.MessageSource(package private) org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer<io.micrometer.core.instrument.MeterRegistry> metricsCommonTags(String applicationName) org.springframework.boot.web.servlet.FilterRegistrationBean<org.ameba.http.RequestIDFilter> requestIDFilter(org.ameba.IDGenerator<String> uuidGenerator) org.springframework.web.client.RestTemplaterestTemplate(org.springframework.boot.web.client.RestTemplateBuilder builder) org.ameba.i18n.Translatororg.ameba.IDGenerator<String> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
CommonModuleConfiguration
public CommonModuleConfiguration()
-
-
Method Details
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
restTemplate
@Bean public org.springframework.web.client.RestTemplate restTemplate(org.springframework.boot.web.client.RestTemplateBuilder builder) -
metricsCommonTags
@RefreshScope @Bean org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer<io.micrometer.core.instrument.MeterRegistry> metricsCommonTags(@Value("${spring.application.name}") String applicationName) -
localeResolver
@Bean public org.springframework.web.servlet.LocaleResolver localeResolver() -
localeChangeInterceptor
@Bean public org.springframework.web.servlet.i18n.LocaleChangeInterceptor localeChangeInterceptor() -
translator
@Bean public org.ameba.i18n.Translator translator() -
messageSource
@Bean public org.springframework.context.MessageSource messageSource() -
corsFiler
@Profile("DEV") @Bean public jakarta.servlet.Filter corsFiler() -
uuidGenerator
-
requestIDFilter
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<org.ameba.http.RequestIDFilter> requestIDFilter(org.ameba.IDGenerator<String> uuidGenerator)
-