|
|
@@ -0,0 +1,95 @@
|
|
|
+server:
|
|
|
+ port: 8080
|
|
|
+ servlet:
|
|
|
+ context-path: /v1/admin
|
|
|
+
|
|
|
+spring:
|
|
|
+ application:
|
|
|
+ name: ${artifactId}
|
|
|
+ profiles:
|
|
|
+ active: @profiles.active@
|
|
|
+
|
|
|
+ main:
|
|
|
+ allow-bean-definition-overriding: true
|
|
|
+ cache:
|
|
|
+ type: redis
|
|
|
+ repositories:
|
|
|
+ enabled: false # 项目未使用到 Spring Data Redis 的 Repository,所以直接禁用,保证启动速度\
|
|
|
+ # Servlet 配置
|
|
|
+ servlet:
|
|
|
+ # 文件上传相关配置项
|
|
|
+ multipart:
|
|
|
+ max-file-size: 16MB # 单个文件大小
|
|
|
+ max-request-size: 32MB # 设置总上传的文件大小
|
|
|
+
|
|
|
+security:
|
|
|
+ oauth2:
|
|
|
+ ignore:
|
|
|
+ urls:
|
|
|
+ - /pay/payBack/**
|
|
|
+ - /cash/cashBack/**
|
|
|
+
|
|
|
+gateway:
|
|
|
+ aes:
|
|
|
+ enabled: false
|
|
|
+ encode-key: 'CBTU1dD4Kd5pyiGWTsI10jRQ3SvKusSV'
|
|
|
+ encode-iv: 'DYgjCEIMVrj2W9xN'
|
|
|
+ encode-mode: 'CBC'
|
|
|
+ encode-padding: 'PKCS7Padding'
|
|
|
+ filter-url:
|
|
|
+ - /code
|
|
|
+ #不校验验证码的客户端
|
|
|
+ ignore-clients:
|
|
|
+ - admin
|
|
|
+
|
|
|
+# swagger 配置
|
|
|
+swagger:
|
|
|
+ enabled: false
|
|
|
+ title: LXQ API
|
|
|
+ gateway: http://${GATEWAY_HOST:localhost}:${GATEWAY-PORT:8080}
|
|
|
+ token-url: ${swagger.gateway}/v1/lxq/oauth2/token
|
|
|
+ scope: server
|
|
|
+ services:
|
|
|
+ lxq-admin-biz: admin
|
|
|
+
|
|
|
+
|
|
|
+file:
|
|
|
+ oss:
|
|
|
+ bucket-name: lxq-uni-bucket
|
|
|
+ file-prefix: lxq_uni
|
|
|
+ endpoint: oss-cn-chengdu.aliyuncs.com
|
|
|
+ accessKey: LTAI5tFQDZmc4ybRYembzVMb
|
|
|
+ secretKey: c7rEI6VrokQ3KtgMnDTS0ltjG47BEx
|
|
|
+ file-url: https://oss-cn-chengdu.aliyuncs.com/
|
|
|
+
|
|
|
+# mybaits-plus配置
|
|
|
+mybatis-plus:
|
|
|
+ mapper-locations: classpath*:/mapper/*.xml,classpath:mapper/*/*.xml
|
|
|
+ global-config:
|
|
|
+ banner: false # 关闭控制台的 Banner 打印
|
|
|
+ db-config:
|
|
|
+ id-type: auto
|
|
|
+ table-underline: true
|
|
|
+ logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
|
|
+ logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
|
|
+ type-handlers-package: com.kxs.common.mybatis.handler
|
|
|
+ configuration:
|
|
|
+ map-underscore-to-camel-case: true
|
|
|
+ shrink-whitespaces-in-sql: true
|
|
|
+ log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql日志
|
|
|
+
|
|
|
+ encryptor:
|
|
|
+ password: DYgjCEIMVrj2W9xN
|
|
|
+mybatis-plus-join:
|
|
|
+ #是否打印 mybatis plus join banner 默认true
|
|
|
+ banner: false
|
|
|
+ #全局启用副表逻辑删除(默认true) 关闭后关联查询不会加副表逻辑删除
|
|
|
+ sub-table-logic: true
|
|
|
+ #拦截器MappedStatement缓存(默认true)
|
|
|
+ ms-cache: true
|
|
|
+ #表别名(默认 t)
|
|
|
+ table-alias: t
|
|
|
+ #副表逻辑删除条件的位置,支持where、on
|
|
|
+ #默认ON (1.4.7.2及之前版本默认为where)
|
|
|
+ logic-del-type: on
|
|
|
+
|