fix: 无量云配置动态化,配置文件配置清除

pull/103/head
shuliYao 1 year ago
parent 9ce5c8c3ee
commit 9fa490ff48

@ -46,7 +46,6 @@ public class ApiConfig {
*/
private Integer readTimeout = 60000;
@Value("${ocr.api.wly.localImagePath}")
private String localImagePath;
/**

@ -160,15 +160,15 @@ mybatis-plus:
xiaoyao:
web:
#上传文件路径
uploadPath: E:/ZJWorkSpace/ocr/htmlweb/upload
uploadPath: D:/Java/idea/IdeaWorkSpace/ocr/htmlweb/upload
#页面根路径
frontPath: E:/ZJWorkSpace/ocr/htmlweb
frontPath: D:/Java/idea/IdeaWorkSpace/ocr/htmlweb
#js、css、图片存放路径
staticPath: E:/ZJWorkSpace/ocr/htmlweb/static
staticPath: D:/Java/idea/IdeaWorkSpace/ocr/htmlweb/static
#页面模版路径
webPath: E:/ZJWorkSpace/ocr/htmlweb/web
webPath: D:/Java/idea/IdeaWorkSpace/ocr/htmlweb/web
#Lucene索引路径
lucenePath: E:/ZJWorkSpace/ocr/htmlweb/lucene/indexDir
lucenePath: D:/Java/idea/IdeaWorkSpace/ocr/htmlweb/lucene/indexDir
#是否开启flowable
haveFlowable: true
webconfig:
@ -272,17 +272,7 @@ springfox:
enabled: true
# 是否启用swagger,postman调试
debugger_tools: true
#无量云api配置信息
ocr:
api:
wly:
interface-domain: https://b-test.prevailcloud.com #接口域名
accessKey: 7390F0221A1A73D8E13F8C8BB96F33B0 #秘钥
accessCode: ED6F7B39768AF95E87AEA8ACCCC71A6F #秘钥编码
connectTimeout: 5000 #请求超时时间 毫秒
readTimeout: 60000 #接收超时时间 毫秒
localImagePath: /server/data/images #图片本地存储地址
data-url: https://b-test.prevailcloud.com/pangu/jingwei/thirdclient/command/pb/approval/result
#图片查重模型
image:
similarityPath: http://47.93.59.251/ai/api/similarity/
classifyPath: http://47.93.59.251/api/classify/

@ -275,18 +275,7 @@ springfox:
enabled: true
# 是否启用swagger,postman调试
debugger_tools: true
#无量云api配置信息
ocr:
api:
wly:
interface-domain: https://b-test.prevailcloud.com #接口域名
accessKey: 7390F0221A1A73D8E13F8C8BB96F33B0 #秘钥
accessCode: ED6F7B39768AF95E87AEA8ACCCC71A6F #秘钥编码
connectTimeout: 5000 #请求超时时间 毫秒
readTimeout: 60000 #接收超时时间 毫秒
localImagePath: /server/data/images #图片本地存储地址
data-url: https://b-test.prevailcloud.com/pangu/jingwei/thirdclient/command/pb/approval/result
#图片查重模型
image:
similarityPath: http://127.0.0.1:8000/api/similarity/
classifyPath: http://127.0.0.1:8000/api/classify/

@ -1,3 +1,3 @@
spring:
profiles:
active: pro
active: dev

Loading…
Cancel
Save