From 46fa404d83317496cb7f7b36b62da7335d746da3 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 04 三月 2022 20:32:12 +0800 Subject: [PATCH] update 增加 mysql 字段格式化处理 防止关键字问题 --- ruoyi-admin/src/main/resources/application.yml | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index dbd182f..b4bca39 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -5,13 +5,13 @@ # 鐗堟湰 version: ${ruoyi-vue-plus.version} # 鐗堟潈骞翠唤 - copyrightYear: 2021 + copyrightYear: 2022 # 瀹炰緥婕旂ず寮�鍏� demoEnabled: true # 鑾峰彇ip鍦板潃寮�鍏� addressEnabled: true # 缂撳瓨鎳掑姞杞� - cacheLazy: true + cacheLazy: false captcha: # 椤甸潰 <鍙傛暟璁剧疆> 鍙紑鍚叧闂� 楠岃瘉鐮佹牎楠� @@ -53,10 +53,6 @@ org.springframework: warn config: classpath:logback.xml -# tlog 鍏ㄥ眬璁块棶鎬ц兘鎷︽埅 -tlog: - enable-invoke-time-print: true - # Spring閰嶇疆 spring: application: @@ -83,6 +79,10 @@ thymeleaf: # 灏嗙郴缁熸ā鏉挎斁缃埌鏈�鍓嶉潰 鍚﹀垯浼氫笌 springboot-admin 椤甸潰鍐茬獊 template-resolver-order: 1 + mvc: + pathmatch: + # 閫傞厤 boot 2.6 璺敱涓� springfox 鍏煎 + matching-strategy: ANT_PATH_MATCHER jackson: # 鏃ユ湡鏍煎紡鍖� date-format: yyyy-MM-dd HH:mm:ss @@ -210,6 +210,8 @@ updateStrategy: NOT_NULL # 瀛楁楠岃瘉绛栫暐涔� select,鍦� select 鐨勬椂鍊欑殑瀛楁楠岃瘉绛栫暐鏃� wrapper 鏍规嵁鍐呴儴 entity 鐢熸垚鐨� where 鏉′欢 where-strategy: NOT_NULL + # 瀵� mysql 鐨勫瓧娈靛仛鏍煎紡鍖� 闃叉鍑虹幇绯荤粺鍏抽敭瀛� + column-format: "`%s`" # Swagger閰嶇疆 swagger: @@ -241,6 +243,10 @@ enable: true # 鏄惁寮�鍚敓浜х幆澧冧繚鎶ょ瓥鐣� production: @knife4j.production@ + basic: + enable: true + username: ruoyi + password: 123456 # 鍓嶇Ui鐨勪釜鎬у寲閰嶇疆灞炴�� setting: # 榛樿璇█ -- Gitblit v1.9.3