test master 변경
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package com.eactive.testmaster.config;
|
||||
|
||||
import com.eactive.testmaster.common.message.PortalReloadableResourceBundleMessageSource;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
||||
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
|
||||
|
||||
/**
|
||||
* @author
|
||||
* @version : 1.0
|
||||
* @ClassName : PortalConfigMessageSource.java
|
||||
* @Description : Portal Message 설정
|
||||
* @since : 2021. 7. 20
|
||||
*/
|
||||
@Configuration
|
||||
public class PortalConfigMessageSource {
|
||||
|
||||
/**
|
||||
* @return [Resource 설정] 메세지 Properties 경로 설정
|
||||
*/
|
||||
@Bean
|
||||
public ReloadableResourceBundleMessageSource messageSource() {
|
||||
PortalReloadableResourceBundleMessageSource reloadableResourceBundleMessageSource = new PortalReloadableResourceBundleMessageSource();
|
||||
reloadableResourceBundleMessageSource.setEgovBaseNames(
|
||||
"classpath*:message/**/*",
|
||||
"classpath:/org/egovframe/rte/fdl/idgnr/messages/idgnr",
|
||||
"classpath:/org/egovframe/rte/fdl/property/messages/properties");
|
||||
return reloadableResourceBundleMessageSource;
|
||||
}
|
||||
|
||||
@Bean
|
||||
public LocalValidatorFactoryBean validator(MessageSource messageSource) {
|
||||
LocalValidatorFactoryBean factoryBean = new LocalValidatorFactoryBean();
|
||||
factoryBean.setValidationMessageSource(messageSource);
|
||||
return factoryBean;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user