/** * This is an action method to query all countries * * @return * @throws Exception */ @RequestMapping("/queryCountries") public @ResponseBody List<Country> queryCountries() throws Exception { List<Country> countries = testService.queryAllCountries(); return countries; }