MessageSourceSpring이 기본적인 메시지와 국제화 기능을 제공하는 인터페이스입니다.이를 통해 각 나라별로 메시지 파일을 관리하여, 사용자의 언어별로 메시지를 전달할 수 있습니다.서버는 HTTP Accept-Language 헤더 값을 통해 message 언어를 기본적으로 설정해 줍니다.// messages_ko.propertieserror.key=기본 에러 메시지error.value={0} 에러 필드// === //// messages_en.propertieserror.key=Default error messageerror.value={0} error field Message Properties 생성Bundle 생성 방법사용할 Locale properties 생성 MessageSource 설정..
StdSerializerBean class used by all standard serializers, and can also be used for custom serializers.즉, 객체를 JSON으로 직렬화할 때 사용하는 커스텀 직렬화 로직을 구현할 수 있게 도와주는 추상 클래스이다. ObjectMapper may not handle your domain correctly. You can structure your data in so many ways that you may find your own domain model does not correctly translate to JSON. StdSerializer는 제네릭 타입 T를 받아들입니다. T는 직렬화하려는 대상 객체의 타입을 나타냅니다.주..
Sigleton Scopethe container creates a single instance of that bean all requests for that bean name will return the same object. Any modifications to the object will be reflected in all references to the bean. This scope is the default value if no other scope is specified.Sigleton Scope인 경우 빈에 대한 모든 요청은 같은 객체를 반환합니다.객체에 대한 어떤 변경이 있는 경우 빈을 참조하는 다른 곳에도 반영이 됩니다.즉, 싱글톤 방식으로 빈을 관리합니다.@Bean@Scope("sing..