类的使用
org.springframework.web.servlet.config.annotation.ViewControllerRegistration
使用ViewControllerRegistration的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.config.annotation中ViewControllerRegistration的使用
返回ViewControllerRegistration的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 ViewControllerRegistration
ViewControllerRegistry. addViewController(String urlPath)
Map a view controller to the given URL path (or pattern) in order to render a response with a pre-configured status code and view.ViewControllerRegistration
ViewControllerRegistration. setStatusCode(HttpStatus statusCode)
Set the status code to set on the response.