类的使用
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 void
DelegatingWebMvcConfiguration. addViewControllers(ViewControllerRegistry registry)
protected void
WebMvcConfigurationSupport. addViewControllers(ViewControllerRegistry registry)
Override this method to add view controllers.default void
WebMvcConfigurer. addViewControllers(ViewControllerRegistry registry)
Configure simple automated controllers pre-configured with the response status code and/or a view to render the response body.void
WebMvcConfigurerAdapter. addViewControllers(ViewControllerRegistry registry)
已过时。Configure simple automated controllers pre-configured with the response status code and/or a view to render the response body.