From 47efdac427e982bb22c916dde4b2265c88b6d69d Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 08 三月 2024 09:52:20 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ycl-server/src/main/resources/application-prod.yml | 70 ++++++++--------------------------- 1 files changed, 16 insertions(+), 54 deletions(-) diff --git a/ycl-server/src/main/resources/application-prod.yml b/ycl-server/src/main/resources/application-prod.yml index 879fa10..70c877d 100644 --- a/ycl-server/src/main/resources/application-prod.yml +++ b/ycl-server/src/main/resources/application-prod.yml @@ -17,10 +17,10 @@ # 寮�鍙戠幆澧冮厤缃� server: # 鏈嶅姟鍣ㄧ殑HTTP绔彛锛岄粯璁や负8080 - port: 8080 + port: 8085 servlet: # 搴旂敤鐨勮闂矾寰� - context-path: / + context-path: /zgyw tomcat: # tomcat鐨刄RI缂栫爜 uri-encoding: UTF-8 @@ -36,56 +36,12 @@ spring: # 鏁版嵁婧愰厤缃� datasource: + url: jdbc:mysql://42.193.1.25:3306/zgyw?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false + username: root + password: 321$YcYl@1970! type: com.alibaba.druid.pool.DruidDataSource - driverClassName: com.mysql.cj.jdbc.Driver - druid: - # 涓诲簱鏁版嵁婧� - url: jdbc:mysql://42.193.1.25:3306/zgyw?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 - username: root - password: 321$YcYl@1970! - # 鍒濆杩炴帴鏁� - initialSize: 5 - # 鏈�灏忚繛鎺ユ睜鏁伴噺 - minIdle: 10 - # 鏈�澶ц繛鎺ユ睜鏁伴噺 - maxActive: 20 - # 閰嶇疆鑾峰彇杩炴帴绛夊緟瓒呮椂鐨勬椂闂� - maxWait: 60000 - # 閰嶇疆杩炴帴瓒呮椂鏃堕棿 - connectTimeout: 30000 - # 閰嶇疆缃戠粶瓒呮椂鏃堕棿 - socketTimeout: 60000 - # 閰嶇疆闂撮殧澶氫箙鎵嶈繘琛屼竴娆℃娴嬶紝妫�娴嬮渶瑕佸叧闂殑绌洪棽杩炴帴锛屽崟浣嶆槸姣 - timeBetweenEvictionRunsMillis: 60000 - # 閰嶇疆涓�涓繛鎺ュ湪姹犱腑鏈�灏忕敓瀛樼殑鏃堕棿锛屽崟浣嶆槸姣 - minEvictableIdleTimeMillis: 300000 - # 閰嶇疆涓�涓繛鎺ュ湪姹犱腑鏈�澶х敓瀛樼殑鏃堕棿锛屽崟浣嶆槸姣 - maxEvictableIdleTimeMillis: 900000 - # 閰嶇疆妫�娴嬭繛鎺ユ槸鍚︽湁鏁� - validationQuery: SELECT 1 FROM DUAL - testWhileIdle: true - testOnBorrow: false - testOnReturn: false - webStatFilter: - enabled: true - statViewServlet: - enabled: true - # 璁剧疆鐧藉悕鍗曪紝涓嶅~鍒欏厑璁告墍鏈夎闂� - allow: - url-pattern: /druid/* - # 鎺у埗鍙扮鐞嗙敤鎴峰悕鍜屽瘑鐮� - login-username: ruoyi - login-password: 123456 - filter: - stat: - enabled: true - # 鎱QL璁板綍 - log-slow-sql: true - slow-sql-millis: 1000 - merge-sql: true - wall: - config: - multi-statement-allow: true + driver-class-name: com.mysql.cj.jdbc.Driver + jpa: show-sql: true generate-ddl: true @@ -120,12 +76,12 @@ spring.data: redis: # 鍦板潃 - host: 162.14.79.111 + host: 42.193.1.25 # 绔彛锛岄粯璁や负6379 port: 6379 - password: 234#Wersdf! + password: ycl2018 # 鏁版嵁搴撶储寮� - database: 0 + database: 1 # 瀵嗙爜(濡傛病鏈夊瘑鐮佽娉ㄩ噴鎺�) # password: # 杩炴帴瓒呮椂鏃堕棿 @@ -156,5 +112,11 @@ subscriptionConnectionPoolSize: 50 +# Swagger閰嶇疆 +swagger: + # 鏄惁寮�鍚痵wagger + enabled: true + # 璇锋眰鍓嶇紑 + pathMapping: /prod-api -- Gitblit v1.8.0