数据库配置、两个python模型服务地址,增加了本地测试的路径,添加了注释区分

master
zc 5 months ago
parent 2980ecfc06
commit c027e0226e
  1. 3
      yudao-server/src/main/java/cn/iocoder/yudao/server/service/OcrProcessingService.java
  2. 3
      yudao-server/src/main/java/cn/iocoder/yudao/server/service/SupervisionService.java
  3. 3
      yudao-server/src/main/resources/application-local.yaml

@ -17,7 +17,8 @@ import java.util.stream.Collectors;
@Service
public class OcrProcessingService {
private static final String OCR_SERVICE_URL = "http://127.0.0.1:5000/ocr";
private static final String OCR_SERVICE_URL = "http://127.0.0.1:5000/ocr"; //线上路径
// private static final String OCR_SERVICE_URL = "http://192.168.130.192:5000/ocr"; //本地测试路径
@Autowired
private IdCardInfoService idCardInfoService;
@Autowired

@ -40,7 +40,8 @@ import sun.misc.BASE64Encoder;
@Service
public class SupervisionService {
private static final Logger LOGGER = LoggerFactory.getLogger(SupervisionService.class);
private static final String UNIFIED_REQUEST_URL = "http://127.0.0.1:8080/table-recognition";
private static final String UNIFIED_REQUEST_URL = "http://127.0.0.1:8080/table-recognition"; //线上路径
// private static final String UNIFIED_REQUEST_URL = "http://192.168.130.192:8080/table-recognition"; //本地测试路径
private static final Gson GSON = new Gson();
private final ReentrantLock lock = new ReentrantLock();

@ -48,7 +48,10 @@ spring:
primary: master
datasource:
master:
#线上
url: jdbc:mysql://127.0.0.1:3306/lq_ocr?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
#测试
# url: jdbc:mysql://192.168.130.153:3306/lq_ocr?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
# url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true # MySQL Connector/J 5.X 连接的示例
# url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro # PostgreSQL 连接的示例
# url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例

Loading…
Cancel
Save