List<Spot> spots =spotService.selLike(str);
			
			System.out.println(spots);

			JSONObject jsonObject = new JSONObject();//创建Json对象
			jsonObject.put("spots",spots);
			
			
			System.out.println(jsonObject.toString());
			response.getWriter().write(jsonObject.toString());

 

相关文章: