@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @Documented @Inherited public @interface View
Declares a view for a controller method that returns void. It is ignored for any controller method that does not return void. If declared at the type level, it applies to all controller methods in the type and can be overridden by another instance of this annotation at the method level.
Example:
@Controller
@View("hello.jsp")
public void sayHello() {
...
}
Controller
public abstract String value
Copyright © 2015 Oracle Corporation. All rights reserved.