|
|
@ -78,10 +78,6 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Value("${app.log.request.exclude-patterns}")
|
|
|
|
@Value("${app.log.request.exclude-patterns}")
|
|
|
|
private List<String> EXCLUDE_URL_REGEXS;
|
|
|
|
private List<String> EXCLUDE_URL_REGEXS;
|
|
|
|
@Value("${spring.messages.basename}")
|
|
|
|
|
|
|
|
private String[] basenames;
|
|
|
|
|
|
|
|
@Value("${spring.messages.encoding}")
|
|
|
|
|
|
|
|
private String encoding;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final CorsProperties corsProperties;
|
|
|
|
private final CorsProperties corsProperties;
|
|
|
|
|
|
|
|
|
|
|
@ -175,29 +171,6 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
|
|
* Reloadable 메세지 설정
|
|
|
|
|
|
|
|
* - load할 메세지 : properties[spring.memssages.basename]에 정의
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return ReloadableResourceBundleMessageSource
|
|
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
|
|
* @see EgovMessageSource
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
// @Bean
|
|
|
|
|
|
|
|
// public MessageSource messageSource() {
|
|
|
|
|
|
|
|
// ReloadableResourceBundleMessageSource rrbms = new ReloadableResourceBundleMessageSource();
|
|
|
|
|
|
|
|
// rrbms.setBasenames(basenames);
|
|
|
|
|
|
|
|
// rrbms.getBasenameSet().forEach(s -> log.info("messageSource getBasename = {}", s));
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// rrbms.setCacheSeconds(60);
|
|
|
|
|
|
|
|
// // 메세지가 없으면 코드 메세지 load
|
|
|
|
|
|
|
|
// rrbms.setUseCodeAsDefaultMessage(true);
|
|
|
|
|
|
|
|
// rrbms.setDefaultEncoding(StandardCharsets.UTF_8.name());
|
|
|
|
|
|
|
|
// return rrbms;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
// Log
|
|
|
|
// Log
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
// -------------------------------------------------------------
|
|
|
|