logging: charset: console: UTF-8 config: classpath: log4j2.yml #禁用白标错误页面 server: error: whitelabel: enabled: false #servlet配置 servlet: encoding: #取消默认的字符集编码 enabled: true #设置强制使用指定字符编码集 force: true #使用的字符编码 charset: utf-8 #MybatisPlus 配置日志显示执行SQL mybatis-plus: #匹配sql语句的映射文件的位置,classpath代表在resources下 mapper-locations: classpath:mapper/*.xml #以下两个配置可以省略,在mapper映射文件中配置“@Mapper”也是可以的。 #使用type-aliases-package中指定entity扫描包路径,让mybatis自动扫描自定义的entity #type-aliases-package: com.dy.pmsGlobal.daoBa configuration: #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #时而输出日志,时而不输出日志 log-impl: org.apache.ibatis.logging.log4j2.Log4j2Impl #开启驼峰uName自动映射到u_name #2023-10-24经实验,下面配置true或false,都能从u_name映射到uName #map-underscore-to-camel-case: true lazyLoadingEnabled: true # 开启延时加载开关 aggressiveLazyLoading: false # 将积极加载改为消极加载(即按需加载),默认值是false lazy-load-trigger-methods: "" # 阻挡不相干的操作触发,实现懒加载 cache-enabled: true #打开全局缓存开关(二级环境),默认值是true default-enum-type-handler: com.dy.common.mybatis.envm.EnumCodeTypeHandler pms: global: dev: false #是否开发阶段,true或false,开发阶段不进行登录验证及权限验证 sso: checkUrl: http://127.0.0.1:12344/sso/sso/ssoCheck webPort: 12344 idSuffix: 1 base: webPort: 12345 idSuffix: 2 product: webPort: 12346 idSuffix: 2