「Spring入門」@ResponseBodyを利用するサンプル

Javaコード
@Controller
@RequestMapping(value = “/address/sta")
public class AddressController {

@RequestMapping(value="/userList", method=RequestMethod.GET)
@ResponseBody
public List<Employee> userList() {
return searEmployeeList();
}

Java

Posted by arkgame