mitao
2024-04-30 ab4ea7b8f10c9b66aed9c2ea161a08b25c3851a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
server:
  port: 8080
  servlet:
    context-path: /rest
 
spring:
  profiles:
    active: dev #dev-开发环境,prod-生产环境
  resources:
    static-locations: classpath:/views/, file:${rest.file-upload-path}
  messages: # 配置国际化文件路径
    basename: i18n.message
  servlet:
    multipart:
      enabled: true
      max-file-size: 1024MB # 单个文件的最大值
      max-request-size: 1024MB # 上传文件总的最大值
 
mybatis-plus:
  mapper-locations: classpath*:com/sinata/**/mapping/*.xml
  type-aliases-package: com.sinata.**.model
  type-handlers-package: com.sinata.common.enums.handler
  global-config:
    id-type: 0  #0:数据库ID自增   1:用户输入id  2:全局唯一id(IdWorker)  3:全局唯一ID(uuid)
    db-column-underline: false
    refresh-mapper: true
  configuration:
    map-underscore-to-camel-case: true #开启下划线转驼峰
    cache-enabled: true #配置的缓存的全局开关
    lazyLoadingEnabled: true #延时加载的开关
    multipleResultSetsEnabled: true #开启的话,延时加载一个属性时会加载该对象全部属性,否则按需加载属性
 
jwt:
  header: Authorization   #http请求头所需要的字段
  secret: mySecret        #jwt秘钥
  expiration: 604800      #7天 单位:秒
  md5-key: randomKey      #md5加密混淆key
  auth-path: #认证请求的路径(不鉴权接口)
    /swagger,/doc.html,/v2/api-docs,/webjars/,
    /api/querySet,/api/auth,/api/queryEnum,/noAuth/,
    /imgs/,
    /sms/send,
    /sms/check,
    /city/vant_all,
    /user/login,
    /user/pay_callback,
    /user/change_pwd,
    /user/register,
    /user/verificationNameId,
    /user/verificationNameIdFace,
    /mall/goodsGroup/applySaleUser,
    /task/test_give_contribution,
    /h5/queryH5,
    /pay/wxpay/notify,
    /pay/alipay/notify,
    /user/pwd_login,
    /mall/user/isExist,
    /mall/user/isBindPhone,
    /mall/user/login,
    /mall/user/register,
    /mall/user/updateProtocol,
    /mall/goods,
    /mall/index/data,
    /mall/index/banner,
    /mall/index/hotGoods,
    /mall/index/firstClassify,
    /mall/index/classifyAll,
    /mall/pay/,
    /mall/appVersion/,
    /mall/merchant/,
    /mall/news/noticeDetail,
    /mall/news/resourceH5,
    /index/getBannerList,
    /index/titleImage,
    /user/authorize/program/login,
    /shopLogin/authorize/program/login,