package com.yssh.controller; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import java.io.IOException; import org.geotools.geojson.geom.GeometryJSON; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.yssh.service.IExpPointServer; import com.yssh.utils.Result; @Api(tags="勘探点") @RestController @RequestMapping("/exp") @SuppressWarnings("rawtypes") public class ExpPointController { @Autowired private IExpPointServer expPointServer; @GetMapping("/list") @ApiOperation(value = "获取所有勘探点", notes = "获取所有勘探点") public Result getList(){ GeometryJSON geo = null; try { geo = expPointServer.selectList(); } catch (IOException e) { e.printStackTrace(); } return Result.OK(geo); } }