src/main/java/com/lf/server/service/data/FmeService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/application.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/lf/server/service/data/FmeService.java
@@ -7,6 +7,8 @@ import com.lf.server.helper.RestHelper; import com.lf.server.helper.StringHelper; import com.lf.server.helper.WebHelper; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; @@ -26,6 +28,8 @@ @Value("${sys.fmeToken}") private String fmeToken; private final static Log log = LogFactory.getLog(FmeService.class); /** * 获取任务状态 @@ -303,11 +307,15 @@ * d.服务申请 */ public void serverApply(String id, Integer pubid, HttpServletRequest req) { try { String url = getUrl("resource/res/request", req) + "&resourceid=" + id; RegisterEntity entity = new RegisterEntity(pubid); RestHelper.postForRest(url, entity); } catch (Exception ex) { log.error(ex.getMessage(), ex); } } /** src/main/resources/application.yml
@@ -46,11 +46,11 @@ name: prod # JDBC 基本配置 ¤tSchema=public #url: jdbc:postgresql://103.135.160.14:5433/langfang?useAffectedRows=true #url: jdbc:postgresql://192.168.11.205:5433/langfang?useAffectedRows=true url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true url: jdbc:postgresql://192.168.11.205:5433/langfang?useAffectedRows=true #url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true username: postgres #password: Postgres!_14_Lf password: postgres password: Postgres!_14_Lf #password: postgres driver-class-name: org.postgresql.Driver platform: POSTGRESQL type: com.alibaba.druid.pool.DruidDataSource