12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- server:
- port: 8080
- spring:
- application:
- name: power-system
- profiles:
- active: dev
- servlet:
- multipart:
- max-file-size: 10737418240
- max-request-size: 10737418240
- mybatis-plus:
- mapper-locations: classpath:/mapper/**/*.xml
- global-config:
- db-config:
- id-type: auto
- configuration:
- auto-mapping-behavior: partial
- map-underscore-to-camel-case: true
- jwt:
- tokenHeader: Authorization #JWT存储的请求头
- secret: mall-admin-secret #JWT加解密使用的密钥
- expiration: 604800 #JWT的超期限时间(60*60*24*7)
- tokenHead: 'Bearer ' #JWT负载中拿到开头
- redis:
- database: power
- key:
- admin: 'ums:admin'
- resourceList: 'ums:resourceList'
- provinceList: 'business:provinceList'
- lineList: 'business:lineList'
- expire:
- common: 86400 # 24小时
- secure:
- ignored:
- urls: #安全路径白名单
- - /swagger-ui.html
- - /swagger-resources/**
- - /swagger/**
- - /**/v2/api-docs
- - /**/*.js
- - /**/*.css
- - /**/*.png
- - /**/*.ico
- - /webjars/springfox-swagger-ui/**
- - /actuator/**
- - /druid/**
- - /admin/login
- - /admin/register
- - /admin/info
- - /admin/logout
- upload:
- temp-path: ./temp/
- path: ./upload/ #文件上传路径
- power-path: ./power/
|