재정의하면 자동으로 setMessageSource메서드의 파라미터로 MessageSource(ApplicationContext)가 자동으로 주입된다.
💡 You can also use the MessageSourceAware interface to acquire a reference to any MessageSource that has been defined. Any bean that is defined in an ApplicationContext that implements the MessageSourceAware interface is injected with the application context’s MessageSource when the bean is created and configured.
📌 I18N 사용할 수 있는 곳 3군데
TestMain MesssageSource ctx = new GenericXmlApplicationContext(”classpath:com/config/user.xml”);