feat: AbstractService 추가

-> EgovAbstractServiceImpl extends
      Service class AbstractService extends로 변경
      Exception 클래스 패키지 이동
      EgovMessageSource class 삭제
      MessageUtil 추가
dev
gitea-관리자 12 months ago
parent 219307bab4
commit cf5d85f35d

@ -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
// ------------------------------------------------------------- // -------------------------------------------------------------

Loading…
Cancel
Save