From 94c115a142e2a9e7fcc3c33dc8f09ccd9d3585d2 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 16 Jan 2022 02:55:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20activiti=20=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E7=AE=80=E5=8D=95=20Mapper=20XML=20?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE=EF=BC=8C=E4=B8=94=E5=87=8F=E5=B0=91?= =?UTF-8?q?=20Mapper=20=E7=9A=84=20SQL=20=E6=97=A5=E5=BF=97=E7=9A=84?= =?UTF-8?q?=E8=BE=93=E5=87=BA~?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-local.yaml | 13 +++++ .../src/main/resources/application.yaml | 19 +------ .../mybatis-config/mybatis-config.xml | 53 ------------------- .../config/YudaoActivitiConfiguration.java | 10 ---- 4 files changed, 15 insertions(+), 80 deletions(-) delete mode 100644 yudao-admin-server/src/main/resources/mybatis-config/mybatis-config.xml diff --git a/yudao-admin-server/src/main/resources/application-local.yaml b/yudao-admin-server/src/main/resources/application-local.yaml index 5fc3e9eca..adc2755a0 100644 --- a/yudao-admin-server/src/main/resources/application-local.yaml +++ b/yudao-admin-server/src/main/resources/application-local.yaml @@ -148,6 +148,18 @@ spring: logging: file: name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 + level: + # 配置自己写的 MyBatis Mapper 打印日志 + cn.iocoder.yudao.adminserver.modules.bpm.dal.mysql: debug + cn.iocoder.yudao.adminserver.modules.infra.dal.mysql: debug + cn.iocoder.yudao.adminserver.modules.pay.dal.mysql: debug + cn.iocoder.yudao.adminserver.modules.system.dal.mysql: debug + cn.iocoder.yudao.adminserver.modules.tool.dal.mysql: debug + cn.iocoder.yudao.coreservice.modules.bpm.dal.mysql: debug + cn.iocoder.yudao.coreservice.modules.infra.dal.mysql: debug + cn.iocoder.yudao.coreservice.modules.pay.dal.mysql: debug + cn.iocoder.yudao.coreservice.modules.system.dal.mysql: debug + cn.iocoder.yudao.coreservice.modules.tool.dal.mysql: debug --- #################### 芋道相关配置 #################### @@ -194,3 +206,4 @@ justauth: type: REDIS prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE:: timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟 + diff --git a/yudao-admin-server/src/main/resources/application.yaml b/yudao-admin-server/src/main/resources/application.yaml index fdb435e87..bc6abf5f1 100644 --- a/yudao-admin-server/src/main/resources/application.yaml +++ b/yudao-admin-server/src/main/resources/application.yaml @@ -35,28 +35,13 @@ spring: # MyBatis Plus 的配置项 mybatis-plus: -# 在 mybatis-config/mybatis-config.xml 中设置 TODO jason:看看有没其它解决方案 -# configuration: -# map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。 -# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 打印日志 + configuration: + map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。 global-config: db-config: id-type: AUTO # 自增 ID logic-delete-value: 1 # 逻辑已删除值(默认为 1) logic-not-delete-value: 0 # 逻辑未删除值(默认为 0) - mapper-locations: classpath*:mapper/*.xml - config-location: classpath:mybatis-config/mybatis-config.xml - configuration-properties: - prefix: "" - wildcardEscapeClause: "" - limitBefore: "" - limitAfter: "LIMIT #{maxResults} OFFSET #{firstResult}" - limitBetween: "" - limitOuterJoinBetween: "" - limitBeforeNativeQuery: "" - orderBy: "order by ${orderByColumns}" - blobType: "BLOB" - boolValue: "TRUE" type-aliases-package: ${yudao.info.base-package}.modules.*.dal.dataobject, ${yudao.core-service.base-package}.modules.*.dal.dataobject --- #################### 芋道相关配置 #################### diff --git a/yudao-admin-server/src/main/resources/mybatis-config/mybatis-config.xml b/yudao-admin-server/src/main/resources/mybatis-config/mybatis-config.xml deleted file mode 100644 index d459d9670..000000000 --- a/yudao-admin-server/src/main/resources/mybatis-config/mybatis-config.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/yudao-framework/yudao-spring-boot-starter-activiti/src/main/java/cn/iocoder/yudao/framework/activiti/config/YudaoActivitiConfiguration.java b/yudao-framework/yudao-spring-boot-starter-activiti/src/main/java/cn/iocoder/yudao/framework/activiti/config/YudaoActivitiConfiguration.java index f65c2a23c..0fbb6c636 100644 --- a/yudao-framework/yudao-spring-boot-starter-activiti/src/main/java/cn/iocoder/yudao/framework/activiti/config/YudaoActivitiConfiguration.java +++ b/yudao-framework/yudao-spring-boot-starter-activiti/src/main/java/cn/iocoder/yudao/framework/activiti/config/YudaoActivitiConfiguration.java @@ -4,8 +4,6 @@ import cn.iocoder.yudao.framework.activiti.core.web.ActivitiWebFilter; import cn.iocoder.yudao.framework.common.enums.WebFilterOrderEnum; import org.activiti.image.ProcessDiagramGenerator; import org.activiti.image.impl.DefaultProcessDiagramGenerator; -import org.activiti.spring.boot.ProcessEngineConfigurationConfigurer; -import org.apache.ibatis.session.SqlSessionFactory; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -21,14 +19,6 @@ public class YudaoActivitiConfiguration { return new DefaultProcessDiagramGenerator(); } - /** - * ProcessEngineConfigurationConfigurer 实现类,设置使用 MyBatis SqlSessionFactory - */ - @Bean - public ProcessEngineConfigurationConfigurer processEngineConfigurationConfigurer(SqlSessionFactory sqlSessionFactory) { - return springProcessEngineConfiguration -> springProcessEngineConfiguration.setSqlSessionFactory(sqlSessionFactory); - } - @Bean public FilterRegistrationBean activitiWebFilter() { FilterRegistrationBean registrationBean = new FilterRegistrationBean<>();