类的使用
org.springframework.web.servlet.config.annotation.ViewControllerRegistry
使用ViewControllerRegistry的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.config.annotation中ViewControllerRegistry的使用
参数类型为ViewControllerRegistry的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected voidDelegatingWebMvcConfiguration. addViewControllers(ViewControllerRegistry registry)protected voidWebMvcConfigurationSupport. addViewControllers(ViewControllerRegistry registry)Override this method to add view controllers.default voidWebMvcConfigurer. addViewControllers(ViewControllerRegistry registry)Configure simple automated controllers pre-configured with the response status code and/or a view to render the response body.voidWebMvcConfigurerAdapter. addViewControllers(ViewControllerRegistry registry)已过时。Configure simple automated controllers pre-configured with the response status code and/or a view to render the response body.