Browse Source

mongodb访问方式变更

tags/v1.0.0^2
林万龙 3 years ago
parent
commit
99721a6ff0
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java

+ 1
- 2
src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java View File

@@ -85,7 +85,6 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS
} }


// 将IP对应的省会保存到mongoDB // 将IP对应的省会保存到mongoDB
@Async("asyncServiceExecutor")
public void createIPProvince(String ipAddress, String province) { public void createIPProvince(String ipAddress, String province) {
log.debug("异步创建推送失败任务记录!"); log.debug("异步创建推送失败任务记录!");
try { try {
@@ -105,7 +104,7 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS
* @param ipAddress * @param ipAddress
*/ */
@Override @Override
@Async("asyncServiceExecutor")
//@Async("asyncServiceExecutor")
public String pushAstPos(String ipAddress) { public String pushAstPos(String ipAddress) {
this.ipPositionRequestKey = positionConfig.getIpPositionRequestKey(); this.ipPositionRequestKey = positionConfig.getIpPositionRequestKey();
this.ipPositionRequestPath = positionConfig.getIpPositionRequestPath(); this.ipPositionRequestPath = positionConfig.getIpPositionRequestPath();


Loading…
Cancel
Save