类的使用
cn.taketoday.web.config.ViewControllerRegistration
-
cn.taketoday.web.config中ViewControllerRegistration的使用
修饰符和类型方法说明ViewControllerRegistry.addViewController(String pathPattern) Map a URL path or pattern to a view controller to render a response with the configured status code and view.ViewControllerRegistry.addViewController(String pathPattern, Object resource) 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.setContentType(String contentType) Set the content-type to return.ViewControllerRegistration.setReturnValue(HttpRequestHandler handler) ViewControllerRegistration.setReturnValue(Object returnValue) Set the resultViewControllerRegistration.setReturnValue(Supplier<Object> objectSupplier) ViewControllerRegistration.setStatusCode(HttpStatusCode statusCode) Set the status code to set on the response.ViewControllerRegistration.setViewName(String viewName) Set the view name to return.