Quellcode durchsuchen

删除依赖geotools

gushoubang vor 8 Monaten
Ursprung
Commit
3b89d93a6c

+ 2 - 2
onemap-auth/src/main/resources/bootstrap.yml

@@ -15,11 +15,11 @@ spring:
       discovery:
         namespace: model
         # 服务注册地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
       config:
         namespace: model
         # 配置中心地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
         # 配置文件格式
         file-extension: yml
         # 共享配置

+ 4 - 4
onemap-gateway/src/main/resources/bootstrap.yml

@@ -19,11 +19,11 @@ spring:
       discovery:
         namespace: model
         # 服务注册地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
       config:
         namespace: model
         # 配置中心地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
         # 配置文件格式
         file-extension: yml
         # 共享配置
@@ -34,13 +34,13 @@ spring:
       eager: true
       transport:
         # 控制台地址
-        dashboard: 192.168.100.30:8718
+        dashboard: 127.0.0.1:8718
 
       # nacos配置持久化
       datasource:
         ds1:
           nacos:
-            server-addr: 192.168.100.30:8848
+            server-addr: 127.0.0.1:8848
             dataId: sentinel-onemap-gateway
             groupId: DEFAULT_GROUP
             data-type: json

+ 120 - 120
onemap-modules/onemap-analyse/src/main/java/com/onemap/analyse/task/FtpSchedule.java

@@ -1,126 +1,126 @@
 package com.onemap.analyse.task;
 
-import com.onemap.analyse.domain.*;
-import com.onemap.analyse.mapper.*;
-import com.onemap.analyse.utils.CalculateShpArea;
-import com.onemap.common.core.utils.StringUtils;
-import com.onemap.common.core.utils.UnPackageUtils;
-import com.onemap.common.core.web.domain.RequestResult;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.scheduling.annotation.Async;
-import org.springframework.scheduling.annotation.Scheduled;
-import org.springframework.stereotype.Component;
-
-import javax.annotation.Resource;
-import java.io.File;
-import java.util.Date;
+// import com.onemap.analyse.domain.*;
+// import com.onemap.analyse.mapper.*;
+// import com.onemap.analyse.utils.CalculateShpArea;
+// import com.onemap.common.core.utils.StringUtils;
+// import com.onemap.common.core.utils.UnPackageUtils;
+// import com.onemap.common.core.web.domain.RequestResult;
+// import org.springframework.beans.factory.annotation.Value;
+// import org.springframework.scheduling.annotation.Async;
+// import org.springframework.scheduling.annotation.Scheduled;
+// import org.springframework.stereotype.Component;
+//
+// import javax.annotation.Resource;
+// import java.io.File;
+// import java.util.Date;
 
 /**
  * 策划生成模块ftp文件夹定时刷新任务
  */
-@Component
-public class FtpSchedule {
-    //间隔时间 单位ms
-    public static final long TIME_INTERVAL = 1 * 15000;
-    //任务状态标识码
-
-    private RwztDTO rwztDTO = new RwztDTO();
-    private XzlbDTO xzlbDTO = new XzlbDTO();
-    private FxfwDictDTO fxfwDictDTO = new FxfwDictDTO();
-    @Resource
-    private HgxfxMapper hgxfxMapper;
-    @Resource
-    HgxfxHgscxMapper hgxfxHgscxMapper;
-    @Resource
-    HgxfxScxMapper hgxfxScxMapper;
-    @Resource
-    private FxrwrzMapper fxrwrzMapper;
-    @Resource
-    private FzssChscMapper fzssChscMapper;
-    @Resource
-    private FzssChscFileMapper fzssChscFileMapper;
-    @Resource
-    private HgxfxTemplateMapper hgxfxTemplateMapper;
-    @Value("${Hgxfx.ftpIn}")
-    private String ftpIn;
-    @Value("${Hgxfx.ftpOut}")
-    private String ftpOut;
-
-    @Async("taskExecutor")
-    //@Scheduled(fixedDelay = TIME_INTERVAL)
-    public void FtpStatus() {
-        try {
-            //TODO 扫描未解压文件,进行数据加压
-            File ftpdirectory = new File(ftpIn);
-            if (!ftpdirectory.isDirectory()) {
-                System.out.println("ftp文件夹配置怎么不是文件夹啊!!!!");
-                return;
-            }
-            File[] filelist = ftpdirectory.listFiles();
-            String unzippath = "";
-            for (int i = 0; i < filelist.length; i++) {
-                File cur = filelist[i];
-                if(cur.isDirectory()){
-                    continue;
-                }
-                //获得文件名称
-                String fileName = cur.getName();
-                String fileRelName = fileName.substring(0, fileName.lastIndexOf("."));
-                String type = fileName.substring(fileName.lastIndexOf(".") + 1).toLowerCase();
-                if (type.contains("zip") || type.contains("rar")) {
-                    unzippath = ftpIn + "/" + fileRelName;
-                    File dest = new File(unzippath);
-                    //判断文件夹是否存在,存在则跳过,说明已经
-                    if (dest.exists()) {
-                        continue;
-                    }
-                    //解压zip格式
-                    if (type.equals("zip")) {
-                        new UnPackageUtils().unPackZip(cur, unzippath);
-                    } else {
-                        //解压rar格式
-                        new UnPackageUtils().unPackRar(cur, unzippath);
-                    }
-                    String shpPath = "";
-                    File[] files = new File(unzippath).listFiles();
-                    for (File file1 : files) {
-                        if (file1.getAbsolutePath().substring(file1.getAbsolutePath().lastIndexOf(".") + 1).equals("shp")) {
-                            shpPath = file1.getAbsolutePath();
-                            break;
-                        }
-                    }
-                    if (!"".equals(shpPath)) {
-                        //计算shape面积
-                        double mj = CalculateShpArea.getShpArea(shpPath);
-                        String fileid = StringUtils.getUUID();
-                        //TODO 插入到T_FZSS_ZHXZ_FILE数据库表
-                        FzssChscFileDTO fileDTO = new FzssChscFileDTO();
-                        fileDTO.setBsm(fileid);
-                        fileDTO.setWj(shpPath);
-                        fileDTO.setYswj(cur.getAbsolutePath());
-                        fzssChscFileMapper.insert(fileDTO);
-                        //TODO 插入到T_FZSS_ZHXZ_CHSC数据库表
-                        FzxzChscDTO chscDto = new FzxzChscDTO();
-                        chscDto.setXzlb(1);//选址类别(0意向范围筛选,1指定空间位置)
-                        chscDto.setXzfw(fileid);//范围
-                        chscDto.setFwlx(2);//范围类型(0行政区 1绘制  2SHP文件)*当选址类别为1时,范围类型只能是2
-                        chscDto.setXmbm(fileRelName);//项目编码(工改系统)
-                        chscDto.setXmmc(fileRelName);//项目名称
-                        chscDto.setXmdm(fileRelName); //项目代码(建设项目审批管理系统)
-                        chscDto.setYwlx("划拨类");//划拨类/出让类
-                        String uuid = StringUtils.getUUID();
-                        chscDto.setBsm(uuid);
-                        chscDto.setNydmj(mj);
-                        chscDto.setRwzt(rwztDTO.getNoRes());
-                        chscDto.setCjsj(new Date());
-                        fzssChscMapper.insert(chscDto);
-                    } else {
-                        System.out.println("未检索到shp文件, 文件夹名称:" + unzippath);
-                    }
-                }
-            }
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
-    }
-}
+// @Component
+// public class FtpSchedule {
+//     //间隔时间 单位ms
+//     public static final long TIME_INTERVAL = 1 * 15000;
+//     //任务状态标识码
+//
+//     private RwztDTO rwztDTO = new RwztDTO();
+//     private XzlbDTO xzlbDTO = new XzlbDTO();
+//     private FxfwDictDTO fxfwDictDTO = new FxfwDictDTO();
+//     @Resource
+//     private HgxfxMapper hgxfxMapper;
+//     @Resource
+//     HgxfxHgscxMapper hgxfxHgscxMapper;
+//     @Resource
+//     HgxfxScxMapper hgxfxScxMapper;
+//     @Resource
+//     private FxrwrzMapper fxrwrzMapper;
+//     @Resource
+//     private FzssChscMapper fzssChscMapper;
+//     @Resource
+//     private FzssChscFileMapper fzssChscFileMapper;
+//     @Resource
+//     private HgxfxTemplateMapper hgxfxTemplateMapper;
+//     @Value("${Hgxfx.ftpIn}")
+//     private String ftpIn;
+//     @Value("${Hgxfx.ftpOut}")
+//     private String ftpOut;
+//
+//     @Async("taskExecutor")
+//     //@Scheduled(fixedDelay = TIME_INTERVAL)
+//     public void FtpStatus() {
+//         try {
+//             //TODO 扫描未解压文件,进行数据加压
+//             File ftpdirectory = new File(ftpIn);
+//             if (!ftpdirectory.isDirectory()) {
+//                 System.out.println("ftp文件夹配置怎么不是文件夹啊!!!!");
+//                 return;
+//             }
+//             File[] filelist = ftpdirectory.listFiles();
+//             String unzippath = "";
+//             for (int i = 0; i < filelist.length; i++) {
+//                 File cur = filelist[i];
+//                 if(cur.isDirectory()){
+//                     continue;
+//                 }
+//                 //获得文件名称
+//                 String fileName = cur.getName();
+//                 String fileRelName = fileName.substring(0, fileName.lastIndexOf("."));
+//                 String type = fileName.substring(fileName.lastIndexOf(".") + 1).toLowerCase();
+//                 if (type.contains("zip") || type.contains("rar")) {
+//                     unzippath = ftpIn + "/" + fileRelName;
+//                     File dest = new File(unzippath);
+//                     //判断文件夹是否存在,存在则跳过,说明已经
+//                     if (dest.exists()) {
+//                         continue;
+//                     }
+//                     //解压zip格式
+//                     if (type.equals("zip")) {
+//                         new UnPackageUtils().unPackZip(cur, unzippath);
+//                     } else {
+//                         //解压rar格式
+//                         new UnPackageUtils().unPackRar(cur, unzippath);
+//                     }
+//                     String shpPath = "";
+//                     File[] files = new File(unzippath).listFiles();
+//                     for (File file1 : files) {
+//                         if (file1.getAbsolutePath().substring(file1.getAbsolutePath().lastIndexOf(".") + 1).equals("shp")) {
+//                             shpPath = file1.getAbsolutePath();
+//                             break;
+//                         }
+//                     }
+//                     if (!"".equals(shpPath)) {
+//                         //计算shape面积
+//                         double mj = CalculateShpArea.getShpArea(shpPath);
+//                         String fileid = StringUtils.getUUID();
+//                         //TODO 插入到T_FZSS_ZHXZ_FILE数据库表
+//                         FzssChscFileDTO fileDTO = new FzssChscFileDTO();
+//                         fileDTO.setBsm(fileid);
+//                         fileDTO.setWj(shpPath);
+//                         fileDTO.setYswj(cur.getAbsolutePath());
+//                         fzssChscFileMapper.insert(fileDTO);
+//                         //TODO 插入到T_FZSS_ZHXZ_CHSC数据库表
+//                         FzxzChscDTO chscDto = new FzxzChscDTO();
+//                         chscDto.setXzlb(1);//选址类别(0意向范围筛选,1指定空间位置)
+//                         chscDto.setXzfw(fileid);//范围
+//                         chscDto.setFwlx(2);//范围类型(0行政区 1绘制  2SHP文件)*当选址类别为1时,范围类型只能是2
+//                         chscDto.setXmbm(fileRelName);//项目编码(工改系统)
+//                         chscDto.setXmmc(fileRelName);//项目名称
+//                         chscDto.setXmdm(fileRelName); //项目代码(建设项目审批管理系统)
+//                         chscDto.setYwlx("划拨类");//划拨类/出让类
+//                         String uuid = StringUtils.getUUID();
+//                         chscDto.setBsm(uuid);
+//                         chscDto.setNydmj(mj);
+//                         chscDto.setRwzt(rwztDTO.getNoRes());
+//                         chscDto.setCjsj(new Date());
+//                         fzssChscMapper.insert(chscDto);
+//                     } else {
+//                         System.out.println("未检索到shp文件, 文件夹名称:" + unzippath);
+//                     }
+//                 }
+//             }
+//         } catch (Exception e) {
+//             e.printStackTrace();
+//         }
+//     }
+// }

+ 127 - 127
onemap-modules/onemap-analyse/src/main/java/com/onemap/analyse/utils/CalculateShpArea.java

@@ -1,26 +1,26 @@
 package com.onemap.analyse.utils;
 
-import org.geotools.data.Query;
-import org.geotools.data.shapefile.ShapefileDataStore;
-import org.geotools.data.shapefile.ShapefileDataStoreFactory;
-import org.geotools.data.simple.SimpleFeatureSource;
-import org.geotools.feature.FeatureCollection;
-import org.geotools.feature.FeatureIterator;
-import org.geotools.geometry.jts.JTS;
-import org.geotools.referencing.CRS;
-import org.locationtech.jts.geom.Geometry;
-import org.opengis.feature.simple.SimpleFeature;
-import org.opengis.feature.simple.SimpleFeatureType;
-import org.opengis.referencing.FactoryException;
-import org.opengis.referencing.crs.CoordinateReferenceSystem;
-import org.opengis.referencing.operation.MathTransform;
-import org.opengis.referencing.operation.TransformException;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.nio.charset.Charset;
-import java.text.DecimalFormat;
+// import org.geotools.data.Query;
+// import org.geotools.data.shapefile.ShapefileDataStore;
+// import org.geotools.data.shapefile.ShapefileDataStoreFactory;
+// import org.geotools.data.simple.SimpleFeatureSource;
+// import org.geotools.feature.FeatureCollection;
+// import org.geotools.feature.FeatureIterator;
+// import org.geotools.geometry.jts.JTS;
+// import org.geotools.referencing.CRS;
+// import org.locationtech.jts.geom.Geometry;
+// import org.opengis.feature.simple.SimpleFeature;
+// import org.opengis.feature.simple.SimpleFeatureType;
+// import org.opengis.referencing.FactoryException;
+// import org.opengis.referencing.crs.CoordinateReferenceSystem;
+// import org.opengis.referencing.operation.MathTransform;
+// import org.opengis.referencing.operation.TransformException;
+//
+// import java.io.File;
+// import java.io.IOException;
+// import java.net.MalformedURLException;
+// import java.nio.charset.Charset;
+// import java.text.DecimalFormat;
 
 /**
  * @Author: siwei
@@ -28,109 +28,109 @@ import java.text.DecimalFormat;
  * @Date: 2023年07月19日
  * @Description: 利用geoTools计算shp面积
  */
-public class CalculateShpArea {
-
-    static DecimalFormat df = new DecimalFormat("#.00");
-    private final static String EPSG_CODE = "EPSG:3857";
-
-    /**
-     * 利用geoTools计算shp面积
-     *
-     * @param shpFilePath
-     * @return
-     */
-    public static double getShpArea(String shpFilePath) {
-        //此时计算出的面积单位是平方米
-        double shpArea = getArea(shpFilePath);
-        //换算成亩
-        shpArea = shpArea / 666.7;
-        return Double.valueOf(df.format(shpArea));
-    }
-
-    /**
-     * 计算shp面积
-     *
-     * @param shpFilePath
-     * @return
-     */
-    public static double getArea(String shpFilePath) {
-        //定义面积
-        double shpTotalArea = 0;
-        //读取shp文件
-        ShapefileDataStore shpStore = buildDataStore(shpFilePath);
-        try {
-            //获取shp文件坐标系
-            CoordinateReferenceSystem srcCRS = CRS.parseWKT(getCRSWkt(shpFilePath));
-            SimpleFeatureSource source = shpStore.getFeatureSource();
-            SimpleFeatureType schema = source.getSchema();
-            Query query = new Query(schema.getTypeName());
-            FeatureCollection<SimpleFeatureType, SimpleFeature> collection = source.getFeatures(query);
-            try (FeatureIterator<SimpleFeature> features = collection.features()) {
-                while (features.hasNext()) {
-                    SimpleFeature feature = features.next();
-                    Geometry geometry = (Geometry) feature.getDefaultGeometry();
-                    geometry.setSRID(4326);
-                    CoordinateReferenceSystem crsTarget = CRS.decode(EPSG_CODE);
-                    // 投影转换
-                    MathTransform transform = CRS.findMathTransform(srcCRS, crsTarget);
-                    Geometry res = JTS.transform(geometry, transform);
-                    //累加每一个面的面积
-                    shpTotalArea = shpTotalArea + res.getArea();
-                }
-            }
-        } catch (IOException e) {
-            e.printStackTrace();
-        } catch (FactoryException e) {
-            e.printStackTrace();
-        } catch (TransformException e) {
-            e.printStackTrace();
-        }
-        return shpTotalArea;
-    }
-
-    /**
-     * 构建ShapeDataStore对象。
-     *
-     * @param shpFilePath shape文件路径。
-     * @return
-     */
-    public static ShapefileDataStore buildDataStore(String shpFilePath) {
-        ShapefileDataStoreFactory factory = new ShapefileDataStoreFactory();
-        try {
-            ShapefileDataStore dataStore = (ShapefileDataStore) factory
-                    .createDataStore(new File(shpFilePath).toURI().toURL());
-            if (dataStore != null) {
-                //这儿根据shp数据实际编码来自己确定
-                dataStore.setCharset(Charset.forName("UTF-8"));
-//                dataStore.setCharset(Charset.forName("GBK"));
-            }
-            return dataStore;
-        } catch (MalformedURLException e) {
-            e.printStackTrace();
-        } catch (IOException e) {
-            e.printStackTrace();
-        }
-        return null;
-    }
-
-    /**
-     * 读取WKT格式的坐标系信息
-     * <p>
-     * shape文件并不是一个文件而是一堆文件,坐标系信息存储在*.prj文件,*.prj文件中存储的直接就是WKT格式的坐标系信息。
-     * <p>
-     * 也可以直接读取*.prj来获取对应的WKT格式数据
-     *
-     * @param shpFilePath
-     * @return
-     */
-    public static String getCRSWkt(String shpFilePath) {
-        ShapefileDataStore dataStore = buildDataStore(shpFilePath);
-        String wkt = null;
-        try {
-            wkt = dataStore.getSchema().getCoordinateReferenceSystem().toWKT();
-        } catch (IOException e) {
-            e.printStackTrace();
-        }
-        return wkt;
-    }
-}
+// public class CalculateShpArea {
+//
+//     static DecimalFormat df = new DecimalFormat("#.00");
+//     private final static String EPSG_CODE = "EPSG:3857";
+//
+//     /**
+//      * 利用geoTools计算shp面积
+//      *
+//      * @param shpFilePath
+//      * @return
+//      */
+//     public static double getShpArea(String shpFilePath) {
+//         //此时计算出的面积单位是平方米
+//         double shpArea = getArea(shpFilePath);
+//         //换算成亩
+//         shpArea = shpArea / 666.7;
+//         return Double.valueOf(df.format(shpArea));
+//     }
+//
+//     /**
+//      * 计算shp面积
+//      *
+//      * @param shpFilePath
+//      * @return
+//      */
+//     public static double getArea(String shpFilePath) {
+//         //定义面积
+//         double shpTotalArea = 0;
+//         //读取shp文件
+//         ShapefileDataStore shpStore = buildDataStore(shpFilePath);
+//         try {
+//             //获取shp文件坐标系
+//             CoordinateReferenceSystem srcCRS = CRS.parseWKT(getCRSWkt(shpFilePath));
+//             SimpleFeatureSource source = shpStore.getFeatureSource();
+//             SimpleFeatureType schema = source.getSchema();
+//             Query query = new Query(schema.getTypeName());
+//             FeatureCollection<SimpleFeatureType, SimpleFeature> collection = source.getFeatures(query);
+//             try (FeatureIterator<SimpleFeature> features = collection.features()) {
+//                 while (features.hasNext()) {
+//                     SimpleFeature feature = features.next();
+//                     Geometry geometry = (Geometry) feature.getDefaultGeometry();
+//                     geometry.setSRID(4326);
+//                     CoordinateReferenceSystem crsTarget = CRS.decode(EPSG_CODE);
+//                     // 投影转换
+//                     MathTransform transform = CRS.findMathTransform(srcCRS, crsTarget);
+//                     Geometry res = JTS.transform(geometry, transform);
+//                     //累加每一个面的面积
+//                     shpTotalArea = shpTotalArea + res.getArea();
+//                 }
+//             }
+//         } catch (IOException e) {
+//             e.printStackTrace();
+//         } catch (FactoryException e) {
+//             e.printStackTrace();
+//         } catch (TransformException e) {
+//             e.printStackTrace();
+//         }
+//         return shpTotalArea;
+//     }
+//
+//     /**
+//      * 构建ShapeDataStore对象。
+//      *
+//      * @param shpFilePath shape文件路径。
+//      * @return
+//      */
+//     public static ShapefileDataStore buildDataStore(String shpFilePath) {
+//         ShapefileDataStoreFactory factory = new ShapefileDataStoreFactory();
+//         try {
+//             ShapefileDataStore dataStore = (ShapefileDataStore) factory
+//                     .createDataStore(new File(shpFilePath).toURI().toURL());
+//             if (dataStore != null) {
+//                 //这儿根据shp数据实际编码来自己确定
+//                 dataStore.setCharset(Charset.forName("UTF-8"));
+// //                dataStore.setCharset(Charset.forName("GBK"));
+//             }
+//             return dataStore;
+//         } catch (MalformedURLException e) {
+//             e.printStackTrace();
+//         } catch (IOException e) {
+//             e.printStackTrace();
+//         }
+//         return null;
+//     }
+//
+//     /**
+//      * 读取WKT格式的坐标系信息
+//      * <p>
+//      * shape文件并不是一个文件而是一堆文件,坐标系信息存储在*.prj文件,*.prj文件中存储的直接就是WKT格式的坐标系信息。
+//      * <p>
+//      * 也可以直接读取*.prj来获取对应的WKT格式数据
+//      *
+//      * @param shpFilePath
+//      * @return
+//      */
+//     public static String getCRSWkt(String shpFilePath) {
+//         ShapefileDataStore dataStore = buildDataStore(shpFilePath);
+//         String wkt = null;
+//         try {
+//             wkt = dataStore.getSchema().getCoordinateReferenceSystem().toWKT();
+//         } catch (IOException e) {
+//             e.printStackTrace();
+//         }
+//         return wkt;
+//     }
+// }

+ 2 - 2
onemap-modules/onemap-analyse/src/main/resources/bootstrap.yml

@@ -20,11 +20,11 @@ spring:
       discovery:
         namespace: model
         # 服务注册地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
       config:
         namespace: model
         # 配置中心地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
         # 配置文件格式
         file-extension: yml
         # 共享配置

+ 2 - 2
onemap-modules/onemap-apply/src/main/resources/bootstrap.yml

@@ -30,11 +30,11 @@ spring:
       discovery:
         namespace: model
         # 服务注册地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
       config:
         namespace: model
         # 配置中心地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
         # 配置文件格式
         file-extension: yml
         # 共享配置

+ 2 - 2
onemap-modules/onemap-file/src/main/resources/bootstrap.yml

@@ -34,11 +34,11 @@ spring:
       discovery:
         namespace: model
         # 服务注册地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
       config:
         namespace: model
         # 配置中心地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
         # 配置文件格式
         file-extension: yml
         # 共享配置

+ 2 - 2
onemap-modules/onemap-model/src/main/resources/bootstrap.yml

@@ -20,11 +20,11 @@ spring:
       discovery:
         namespace: model
         # 服务注册地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
       config:
         namespace: model
         # 配置中心地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
         # 配置文件格式
         file-extension: yml
         # 共享配置

+ 2 - 2
onemap-modules/onemap-spatial/src/main/resources/bootstrap.yml

@@ -20,11 +20,11 @@ spring:
       discovery:
         namespace: model
         # 服务注册地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
       config:
         namespace: model
         # 配置中心地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
         # 配置文件格式
         file-extension: yml
         # 共享配置

+ 2 - 2
onemap-modules/onemap-system/src/main/resources/bootstrap.yml

@@ -15,11 +15,11 @@ spring:
       discovery:
         namespace: model
         # 服务注册地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
       config:
         namespace: model
         # 配置中心地址
-        server-addr: 192.168.100.30:8848
+        server-addr: 127.0.0.1:8848
         # 配置文件格式
         file-extension: yml
         # 共享配置