@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()
public void setApplicationContext(ApplicationContext context)
setApplicationContext in interface ApplicationContextAware@RequestMapping(method=GET, value="{name}.json", produces="application/json") public Object json(@PathVariable String name) throws Exception
Exception@RequestMapping(method=GET, value="{name}.xml", produces="application/xml") public Object xml(@PathVariable String name) throws Exception
Exception@ExceptionHandler(value={org.springframework.beans.factory.NoSuchBeanDefinitionException.class,java.util.NoSuchElementException.class}) @ResponseStatus(value=NOT_FOUND, reason="Resource not found") public void handleNOT_FOUND()
Copyright © 2015–2021. All rights reserved.