@Configuration
@ComponentScan(basePackages={"de.digitalcollections.commons.springboot.actuator","de.digitalcollections.commons.springboot.contributor","de.digitalcollections.commons.springboot.monitoring","de.digitalcollections.core.config"})
public class SpringConfig
extends Object
implements org.springframework.context.EnvironmentAware
| Constructor and Description |
|---|
SpringConfig() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.context.MessageSource |
configureMessageSource()
Create a resource bundle for your messages ("messages.properties").
|
void |
setEnvironment(org.springframework.core.env.Environment environment) |
@Bean(name="messageSource") public org.springframework.context.MessageSource configureMessageSource()
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwareCopyright © 2018. All rights reserved.