From 6f6a63501537e1753fd4e696b2018454a9c2a280 Mon Sep 17 00:00:00 2001 From: eGovFrameSupport Date: Tue, 9 May 2023 14:13:06 +0900 Subject: [PATCH] Update context-common-convert.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/eGovFramework/egovframe-template-simple-backend/pull/26 해당 PR로 인하여 클래스 명 변경 --- Docs/context-common-convert.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Docs/context-common-convert.md b/Docs/context-common-convert.md index c19b59d..af04790 100644 --- a/Docs/context-common-convert.md +++ b/Docs/context-common-convert.md @@ -28,7 +28,26 @@ }) ``` +메시지소스빈 설정 + +```xml + + + + + +``` + + +```java +@Bean +public EgovMessageSource egovMessageSource() { + EgovMessageSource egovMessageSource = new EgovMessageSource(); + egovMessageSource.setReloadableResourceBundleMessageSource(messageSource()); + return egovMessageSource; +} +``` 프로퍼티 파일 위치 등록 @@ -50,7 +69,7 @@ ``` - + ```java @Bean @@ -129,4 +148,4 @@ public CommonsMultipartResolver springRegularCommonsMultipartResolver() { commonsMultipartResolver.setMaxInMemorySize(100000000); return commonsMultipartResolver; } -``` \ No newline at end of file +```