From 1c11d7ccc125366ff12efa4770749e389aba01fb Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 09 七月 2021 15:30:40 +0800 Subject: [PATCH] update 转移 springboot-admin 到扩展模块项目 --- ruoyi-admin/src/main/resources/application.yml | 86 +++++++++++++++++++++++++++++++----------- 1 files changed, 63 insertions(+), 23 deletions(-) diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index f665f83..3352d1d 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -1,8 +1,3 @@ ---- # 鏈湴鐜閰嶇疆 -spring: - profiles: - active: local ---- # 椤圭洰鐩稿叧閰嶇疆 ruoyi: # 鍚嶇О @@ -13,20 +8,22 @@ copyrightYear: 2021 # 瀹炰緥婕旂ず寮�鍏� demoEnabled: true - # 鏂囦欢璺緞,浣跨敤jvm绯荤粺鍙橀噺,鍏煎windows鍜宭inux; - profile: ${user.dir}/ruoyi/uploadPath + # 鏂囦欢璺緞 + profile: ./ruoyi/uploadPath # 鑾峰彇ip鍦板潃寮�鍏� - addressEnabled: false + addressEnabled: true captcha: + # 楠岃瘉鐮佸紑鍏� + enabled: true # 楠岃瘉鐮佺被鍨� math 鏁扮粍璁$畻 char 瀛楃楠岃瘉 - captchaType: math + type: math # line 绾挎骞叉壈 circle 鍦嗗湀骞叉壈 shear 鎵洸骞叉壈 - captchaCategory: circle + category: circle # 鏁板瓧楠岃瘉鐮佷綅鏁� - captchaNumberLength: 1 + numberLength: 1 # 瀛楃楠岃瘉鐮侀暱搴� - captchaCharLength: 4 + charLength: 4 # 寮�鍙戠幆澧冮厤缃� server: @@ -67,6 +64,8 @@ # Spring閰嶇疆 spring: + application: + name: ${ruoyi.name} # 璧勬簮淇℃伅 messages: # 鍥介檯鍖栬祫婧愭枃浠惰矾寰� @@ -89,6 +88,17 @@ thymeleaf: # 灏嗙郴缁熸ā鏉挎斁缃埌鏈�鍓嶉潰 鍚﹀垯浼氫笌 springboot-admin 椤甸潰鍐茬獊 template-resolver-order: 1 + jackson: + # 鏃ユ湡鏍煎紡鍖� + date-format: yyyy-MM-dd HH:mm:ss + serialization: + # 鏍煎紡鍖栬緭鍑� + indent_output: false + # 蹇界暐鏃犳硶杞崲鐨勫璞� + fail_on_empty_beans: false + deserialization: + # 鍏佽瀵硅薄蹇界暐json涓笉瀛樺湪鐨勫睘鎬� + fail_on_unknown_properties: false # token閰嶇疆 token: @@ -102,6 +112,8 @@ # MyBatisPlus閰嶇疆 # https://baomidou.com/config/ mybatis-plus: + # 涓嶆敮鎸佸鍖�, 濡傛湁闇�瑕佸彲鍦ㄦ敞瑙i厤缃� 鎴� 鎻愬崌鎵寘绛夌骇 + # 渚嬪 com.**.**.mapper mapperPackage: com.ruoyi.**.mapper # 瀵瑰簲鐨� XML 鏂囦欢浣嶇疆 mapperLocations: classpath*:mapper/**/*Mapper.xml @@ -148,7 +160,9 @@ # STATEMENT 鍏抽棴涓�绾х紦瀛� localCacheScope: SESSION # 寮�鍚疢ybatis浜岀骇缂撳瓨锛岄粯璁や负 true - cacheEnabled: true + cacheEnabled: false + # 鏇磋缁嗙殑鏃ュ織杈撳嚭 浼氭湁鎬ц兘鎹熻�� + # logImpl: org.apache.ibatis.logging.stdout.StdOutImpl global-config: # 鏄惁鎵撳嵃 Logo banner banner: true @@ -200,6 +214,11 @@ description: '鎻忚堪锛氱敤浜庣鐞嗛泦鍥㈡棗涓嬪叕鍙哥殑浜哄憳淇℃伅,鍏蜂綋鍖呮嫭XXX,XXX妯″潡...' # 鐗堟湰 version: '鐗堟湰鍙�: ${ruoyi-vue-plus.version}' + # 浣滆�呬俊鎭� + contact: + name: Lion Li + email: crazylionli@163.com + url: https://gitee.com/JavaLionLi/RuoYi-Vue-Plus # 闃叉XSS鏀诲嚮 xss: @@ -211,7 +230,7 @@ urlPatterns: /system/*,/monitor/*,/tool/* # 鍏ㄥ眬绾跨▼姹犵浉鍏抽厤缃� -threadPoolConfig: +thread-pool: # 鏄惁寮�鍚嚎绋嬫睜 enabled: false # 鏍稿績绾跨▼姹犲ぇ灏� @@ -231,6 +250,8 @@ # feign 鐩稿叧閰嶇疆 feign: + # 涓嶆敮鎸佸鍖�, 濡傛湁闇�瑕佸彲鍦ㄦ敞瑙i厤缃� 鎴� 鎻愬崌鎵寘绛夌骇 + # 渚嬪 com.**.**.feign package: com.ruoyi.**.feign # 寮�鍚帇缂� compression: @@ -240,8 +261,30 @@ enabled: true okhttp: enabled: true - hystrix: + circuitbreaker: enabled: true + +--- # redisson 缂撳瓨閰嶇疆 +redisson: + cacheGroup: + # 鐢ㄤ緥: @Cacheable(cacheNames="groupId", key="#XXX") 鏂瑰彲浣跨敤缂撳瓨缁勯厤缃� + - groupId: redissonCacheMap + # 缁勮繃鏈熸椂闂�(鑴氭湰鐩戞帶) + ttl: 60000 + # 缁勬渶澶х┖闂叉椂闂�(鑴氭湰鐩戞帶) + maxIdleTime: 60000 + # 缁勬渶澶ч暱搴� + maxSize: 0 + - groupId: testCache + ttl: 1000 + maxIdleTime: 500 + +--- # 鍒嗗竷寮忛攣 lock4j 鍏ㄥ眬閰嶇疆 +lock4j: + # 鑾峰彇鍒嗗竷寮忛攣瓒呮椂鏃堕棿锛岄粯璁や负 3000 姣 + acquire-timeout: 3000 + # 鍒嗗竷寮忛攣鐨勮秴鏃舵椂闂达紝榛樿涓� 30 姣 + expire: 30000 --- # 瀹氭椂浠诲姟閰嶇疆 spring: @@ -276,20 +319,16 @@ --- # 鐩戞帶閰嶇疆 spring: - application: - name: ruoyi-vue-plus boot: admin: # Spring Boot Admin Client 瀹㈡埛绔殑鐩稿叧閰嶇疆 client: # 璁剧疆 Spring Boot Admin Server 鍦板潃 - url: http://localhost:${server.port}${spring.boot.admin.context-path} + url: http://localhost:9090/admin instance: prefer-ip: true # 娉ㄥ唽瀹炰緥鏃讹紝浼樺厛浣跨敤 IP - # username: ruoyi - # password: 123456 - # Spring Boot Admin Server 鏈嶅姟绔殑鐩稿叧閰嶇疆 - context-path: /admin # 閰嶇疆 Spring + username: ruoyi + password: 123456 # Actuator 鐩戞帶绔偣鐨勯厤缃」 management: @@ -299,7 +338,8 @@ base-path: /actuator exposure: # 闇�瑕佸紑鏀剧殑绔偣銆傞粯璁ゅ�煎彧鎵撳紑 health 鍜� info 涓や釜绔偣銆傞�氳繃璁剧疆 * 锛屽彲浠ュ紑鏀炬墍鏈夌鐐广�� + # 鐢熶骇鐜涓嶅缓璁斁寮�鎵�鏈� 鏍规嵁椤圭洰闇�姹傛斁寮�鍗冲彲 include: '*' endpoint: logfile: - external-file: ./logs/sys-console.log \ No newline at end of file + external-file: ./logs/sys-console.log -- Gitblit v1.9.3