月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-10-11 81cabdda2eb43c5b976d0a652208bb529830a253
解决获取数简任务状态报错
已修改3个文件
16 ■■■■ 文件已修改
src/main/java/com/moon/server/helper/HttpHelper.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/service/data/ShuJianService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/helper/HttpHelper.java
@@ -270,6 +270,10 @@
        if (null == entity) {
            return;
        }
        if (null == res) {
            entity.writeTo(response.getOutputStream());
            return;
        }
        switch (res.getCategory()) {
            case 2:
src/main/java/com/moon/server/service/data/ShuJianService.java
@@ -12,6 +12,7 @@
import com.moon.server.helper.HttpHelper;
import com.moon.server.helper.RestHelper;
import com.moon.server.helper.StringHelper;
import com.moon.server.helper.WebHelper;
import com.moon.server.service.sys.LayerService;
import com.moon.server.service.sys.ResService;
import org.apache.commons.logging.Log;
@@ -91,6 +92,7 @@
            httpHelper.service(req, res, null, url);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
            WebHelper.writeJson2Page(res,ex.getMessage());
        }
    }
@@ -105,6 +107,7 @@
            httpHelper.service(req, res, null, url);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
            WebHelper.writeJson2Page(res,ex.getMessage());
        }
    }
@@ -119,6 +122,7 @@
            httpHelper.service(req, res, null, url);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
            WebHelper.writeJson2Page(res,ex.getMessage());
        }
    }
src/main/resources/application.yml
@@ -46,12 +46,12 @@
  datasource:
    name: prod
    # JDBC 基本配置 &currentSchema=public
    #url: jdbc:postgresql://127.0.0.1:5433/moon?useAffectedRows=true
    url: jdbc:postgresql://192.168.20.83:5433/moon?useAffectedRows=true
    url: jdbc:postgresql://127.0.0.1:5433/moon?useAffectedRows=true
    #url: jdbc:postgresql://192.168.20.83:5433/moon?useAffectedRows=true
    #url: jdbc:postgresql://103.85.165.99:25432/moon?useAffectedRows=true
    username: postgres
    password: Postgres!_14_moon
    #password: postgres
    #password: Postgres!_14_moon
    password: postgres
    driver-class-name: org.postgresql.Driver
    platform: POSTGRESQL
    type: com.alibaba.druid.pool.DruidDataSource