Annotation Interface HandleVariable
Annotation that binds a method variable to a bean handle.
Example
@Controller("/api")
public class MyController {
// Incoming request looks like "/config/some-bean-handle"
@PostMapping("/config/{handle}")
public ConfigBean getConfig(@HandleVariable("handle") ConfigAware<?> bean) {
return bean.getConfig();
}
}
- Since:
- 1.0
- Version:
- 2022-08-30
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe name of the variable to map to.- Default:
- ""
-