-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix: 중복 선언된 @EnableWebMVC 삭제 * refactor: MDCFilter MVC 필터로 수정 * refactor: request 타입 HttpServletRequest로 수정 * refactor: 예외 공통 로깅 적용 * feat: message 프로퍼티 추가 * feat: MessageSourceAccessor 구현 * feat: MessageSourceConfig 설정 * feat: 공통 예외 생성 * feat: 구독 예외 생성 * feat: few 예외 헨들러 선언 * refactor: IllegalArgumentException 예외 메시지 구체화 * refactor: dao에서 예외가 아닌 XXX? 반환하도록 수정 * refactor: usecase에 few 예외 적용 * refactor: subscribe.state.subscribed 응답값 요구 사항 반영 * refactor: setUp에서 ARTICLE_MST 테이블 삭제 추가 * fix: 오타 수정 unsbuscribe -> unsubscribe * refactor: 일반 예외 예외 메시지 구체화 * feat: subscribe.state.subscribed 추가 * refactor: few 예외 적용 * test: c827ff21ebb1539ffa5618d2147dfb2513503957에서의 selectWriter 응답 변경에 따른 수정
- Loading branch information
1 parent
dab70a7
commit 340c402
Showing
46 changed files
with
353 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
api/src/main/kotlin/com/few/api/config/MessageSourceConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.few.api.config | ||
|
||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.context.support.ReloadableResourceBundleMessageSource | ||
import java.nio.charset.StandardCharsets | ||
|
||
@Configuration | ||
class MessageSourceConfig { | ||
@Bean | ||
fun messageSource(): ReloadableResourceBundleMessageSource { | ||
val messageSource = ReloadableResourceBundleMessageSource() | ||
messageSource.setDefaultEncoding(StandardCharsets.UTF_8.name()) | ||
for (path in MESSAGE_SOURCE_CLASSPATH_LIST) { | ||
messageSource.addBasenames(path) | ||
} | ||
return messageSource | ||
} | ||
|
||
companion object { | ||
private val MESSAGE_SOURCE_CLASSPATH_LIST = listOf( | ||
"classpath:messages/article", | ||
"classpath:messages/document", | ||
"classpath:messages/external", | ||
"classpath:messages/image", | ||
"classpath:messages/member", | ||
"classpath:messages/problem", | ||
"classpath:messages/submit", | ||
"classpath:messages/subscribe", | ||
"classpath:messages/workbook" | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.