From 450083f7d9d5b687c732acddefb56632f7b3d5ad Mon Sep 17 00:00:00 2001 From: shikeying <shikeying@163.com> Date: 星期一, 14 十一月 2022 12:53:39 +0800 Subject: [PATCH] 添加文本推荐API接口 --- deploy-jar-template/src/main/resources/application-dev.yml | 51 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 46 insertions(+), 5 deletions(-) diff --git a/deploy-jar-template/src/main/resources/application-dev.yml b/deploy-jar-template/src/main/resources/application-dev.yml index a11d24f..5d3d644 100644 --- a/deploy-jar-template/src/main/resources/application-dev.yml +++ b/deploy-jar-template/src/main/resources/application-dev.yml @@ -8,11 +8,11 @@ # password: Bjjmy_63661766 password: Bjjmy_2020 # driver-class-name: sunje.goldilocks.jdbc.GoldilocksDriver - url: jdbc:mysql://124.70.39.177:3306/train_recommend?useUnicode=true&characterEncoding=UTF-8&useSSL=false + url: jdbc:mysql://116.198.40.76:3306/train_recommend?useUnicode=true&characterEncoding=UTF-8&useSSL=false type: com.walker.jdbc.ds.DefaultDataSource hikari: minimum-idle: 5 - idle-timeout: 5000 + idle-timeout: 600000 pool-name: databasePool_walker connection-timeout: 10000 connection-test-query: select 1 @@ -39,6 +39,8 @@ springframework: error com: walker: info + iplatform: debug + # file: # logging.file.path 鍜� logging.file.name锛屽彧浼氭湁涓�涓敓鏁堬紝閰嶄簡path涓嶈閰峮ame锛岄厤浜唍ame涓嶈閰峱ath锛屽彧閰峱ath鏃秐ame榛樿涓簊pring.log锛屾兂璺緞鍜屾枃浠跺悕鍚屾椂鐢熸晥鍙厤缃甽ogging.file.name=d:/logs/mylog.log # name: ${spring.application.name}.log #鏃ュ織鏂囦欢鍚� # path: logs #鏃ュ織瀛樺偍璺緞 @@ -62,7 +64,7 @@ cache: redis-enabled: false - # 鐩镐技搴﹀垎鏋愭ā鍧椾娇鐢� + # 鐩镐技搴﹀垎鏋愭ā鍧椾娇鐢紙鏆傛椂搴熷純锛� similarity: # 鏄惁鍚敤鐩镐技搴︽ā鍧楋紝濡傛灉绂佺敤鍒欒纭繚娉ㄥ叆鏃舵敮鎸佷负绌� enabled: true @@ -73,8 +75,47 @@ # 璋冨害鍣ㄦā鍧楋紝鏄惁鍚敤 scheduler: - enabled: true + enabled: false # 鏁版嵁閲囬泦妯″潡 gather: - enabled: true \ No newline at end of file + enabled: true + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# 涓氬姟鍔熻兘閰嶇疆鍙傛暟 +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +recommend: + + video: + # 瑙嗛閲囬泦瀛樺偍鏍硅矾寰� + data-folder: D:/dev_tools/ai/ +# data-folder: /opt/ai/video/ + + # 瑙嗛鐩镐技搴I鏈嶅姟URL +# ai-service: http://121.36.40.27:12345 + ai-service: http://127.0.0.1:8801 + + # 鎺ㄨ崘鐩镐技瑙嗛(绠楁硶)鍓嶅灏戜釜 + top-n: 40 + + # 娴嬭瘯妯″紡锛屽鏋滄槸鍒欎粎鐢熸垚鍥哄畾娴嬭瘯鏁版嵁锛屾寮忛儴缃查渶瑕佹敼涓� false + test-mode: false + + #涓氬姟瑙嗛鎵�鍦ㄦ暟鎹簱淇℃伅 +# business-datasource-url: 116.198.40.76 + business-datasource-url: 127.0.0.1 + business-datasource-port: 3306 + business-datasource-service: train_zs + business-datasource-authentication: root + business-datasource-certification: Bjjmy_2020 + + text: + # 鏂囨湰鐩镐技搴︽湇鍔RL + ai-service: http://116.198.39.83:54321 + +#sftp: +# host: 124.70.39.177 +# port: 22 +# user: mysftp +# pass: Bjjmy_2020 +# base: /train -- Gitblit v1.9.1