.yml 后缀的文件可以有多个

application.yml
ruoyi:name: RuoYiversion: 3.8.5copyrightYear: 2023demoEnabled: trueprofile: D:/ruoyi/uploadPathaddressEnabled: falsecaptchaType: math
server:port: 9101servlet:context-path: /tomcat:uri-encoding: UTF-8accept-count: 1000threads:max: 800min-spare: 100
logging:level:com.ruoyi: debugorg.springframework: warn
user:password:maxRetryCount: 5lockTime: 10
spring:messages:basename: i18n/messagesprofiles:active: druidservlet:multipart:max-file-size: 10MBmax-request-size: 20MBdevtools:restart:enabled: trueredis:host: localhostport: 6379database: 0password:timeout: 10slettuce:pool:min-idle: 0max-idle: 8max-active: 8max-wait: -1ms
token:header: Authorizationsecret: abcdefghijklmnopqrstuvwxyzexpireTime: 30
mybatis:typeAliasesPackage: com.ruoyi.**.domainmapperLocations: classpath*:mapper/**/*Mapper.xmlconfigLocation: classpath:mybatis/mybatis-config.xml
pagehelper:helperDialect: mysqlsupportMethodsArguments: trueparams: count=countSql
swagger:enabled: truepathMapping: /dev-api
xss:enabled: trueexcludes: /system/noticeurlPatterns: /system/*,/monitor/*,/tool/*
application-druid.yml
spring:datasource:type: com.alibaba.druid.pool.DruidDataSourcedriverClassName: com.mysql.cj.jdbc.Driverdruid:master:url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8username: rootpassword: 123456slave:enabled: falseurl:username:password:initialSize: 5minIdle: 10maxActive: 20maxWait: 60000connectTimeout: 30000socketTimeout: 60000timeBetweenEvictionRunsMillis: 60000minEvictableIdleTimeMillis: 300000maxEvictableIdleTimeMillis: 900000validationQuery: SELECT 1 FROM DUALtestWhileIdle: truetestOnBorrow: falsetestOnReturn: falsewebStatFilter:enabled: truestatViewServlet:enabled: trueallow:url-pattern: /druid/*login-username: ruoyilogin-password: 123456filter:stat:enabled: truelog-slow-sql: trueslow-sql-millis: 1000merge-sql: truewall:config:multi-statement-allow: true
token令牌标识
token:header: Authorization
下图可以看到请求了携带了名称为 Authorization 的key/key对应java中配置的header属性,value中的 Bearer 也是来自java配置后面的一串则是来自登录接口返回值的数据需要经过权限认证的接口地址都需要携带该参数

