package com.hida.configuration;

 
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
import org.springframework.web.servlet.view.JstlView;
 
@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "com.hida")
public class AppConfig {
     
    @Bean
    public ViewResolver viewResolver() {
        InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
        viewResolver.setViewClass(JstlView.class);
        viewResolver.setPrefix("/WEB-INF/**");
        viewResolver.setSuffix(".jsp");
        return viewResolver;
    }
     
    @Bean
    public MessageSource messageSource() {
        ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
        messageSource.setBasename("messages");
        return messageSource;
    }
}
@@ -30,60 +30,8 @@
 n;%0A%0A
- %0Aimport org.springframework.context.MessageSource;%0A
 impo
@@ -204,80 +204,8 @@
 on;%0A
-import org.springframework.context.support.ResourceBundleMessageSource;%0A
 impo
@@ -452,18 +452,17 @@
 tlView;%0A
- 
 %0A
+
 @Configu
@@ -549,22 +549,17 @@
 onfig %7B%0A
-     
 %0A
+
     @Bea
@@ -870,230 +870,7 @@
     
- %0A    @Bean%0A    public MessageSource messageSource() %7B%0A        ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();%0A        messageSource.setBasename(%22messages%22);%0A        return messageSource;%0A    
+%0A
 %7D%0A
-%7D

Remove MessageSource