@RestController @RequestMapping(value="/jig/bean/") @ResponseBody public class BeanRestController extends Object implements ApplicationContextAware
RestController implementation.
| Annotation(s) | Field |
|---|
| Constructor and Description |
|---|
BeanRestController() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleNOT_FOUND() |
Object |
json(String name) |
void |
setApplicationContext(ApplicationContext context) |
Object |
xml(String name) |
public BeanRestController()
@ExceptionHandler(value={org.springframework.beans.factory.NoSuchBeanDefinitionException.class,java.util.NoSuchElementException.class}) @ResponseStatus(value=NOT_FOUND, reason="Resource not found") public void handleNOT_FOUND()
@RequestMapping(method=GET, value="{name}.json", produces="application/json") public Object json(@PathVariable String name) throws Exception
Exceptionpublic void setApplicationContext(ApplicationContext context)
setApplicationContext in interface ApplicationContextAwareCopyright © 2015–2020 Allen D. Ball. All rights reserved.