package com.dji.sample.patches.service.impl; import com.dji.sample.patches.dao.DemoMapper; import com.dji.sample.patches.service.DemoService; import com.dji.sample.patches.utils.ShapeFileUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.io.File; import java.io.IOException; @Service public class DemoServiceImpl implements DemoService { @Autowired private DemoMapper mapper; private ShapeFileUtil shapeFileUtil; @Override public void insertGeo(File file) throws IOException { System.out.println(shapeFileUtil.shpToGeoJson(file)); } }