Paquete com.syu.config; Importación org.springframework.context.annotation.Configuration; Importación org.springframework.web.servlet.config.annotation.ViewControllerRegistry; Importación org.springframework.web.servlet.config.annotation.WebMvcConfigurer; Importación de Java .util.Locale; // Si desea ampliar oficial SpringMVC sugirió que lo hacemos de esta manera: no agregue EnableWebMvc comentario @Configuration // @EnableWebMvc EnableWebMvc importar una clase: DelegatingWebConfiguation, el papel es conseguir todos WebConfig desde el contenedor público de clase MyMvcConfig los implementos WebMvcConfigurer { // vista salto @ Override pública nulaaddViewControllers (registro ViewControllerRegistry) { registry.addViewController ( "/kuang").setViewName("test" ); } }