@Inherited @Documented @Target(value=FIELD) @Retention(value=RUNTIME) public @interface Parameter
Binding for a parameter. This annotation can be used to bind a parameter to a bean property.
@Join(path = "/user/{id}", to = "/user-details.html")
public class MyClass {
@Parameter
private String id;
}
Please note that you have to specify the parameter name manually if it differs from the field name.
@Join(path = "/user/{id}", to = "/user-details.html")
public class MyClass {
@Parameter("id")
private String userId;
}
public abstract String value
Copyright © 2023 OCPsoft. All rights reserved.