| | |
| | | mapper-locations: classpath*:/mappers/**/*.xml |
| | | configuration: |
| | | map-underscore-to-camel-case: true |
| | | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
| | | log-impl: com.doumee.config.mybatis.DmStdOutImpl |
| | | |
| | | |
| | | # 缓存内容设置 |
| | |
| | | # dao层的日志设置为debug,方便查看sql |
| | | logging: |
| | | level: |
| | | doumeemes.dao: debug |
| | | com.doumee.dao: debug |
| | | |
| | | knife4j: |
| | | enable: true |
| | | basic: |
| | | enable: true |
| | | username: admin |
| | | password: 111111 |
| | | main: |
| | | allow-circular-references: true |
| | | # Swagger配置 |
| | | |
| | | swagger: |
| | | host: |
| | | title: ${project.name}接口文档 |
| | | description: ${project.name}接口文档 |
| | | enabled: true |
| | | # 禁用swagger时的重定向地址 |
| | | redirect-uri: / |
| | | |
| | | # WEB服务器配置 |
| | | server: |
| | |
| | | max-swallow-size: -1 |
| | | servlet: |
| | | session: |
| | | timeout: PT3H #表示12小时 |
| | | timeout: PT3H #表示12小时 |
| | | |
| | | auth: |
| | | jwt: |
| | | enabled: true #是否开启JWT登录认证功能 |
| | | secret: fjkfaf;afa # JWT私钥,用于校验JWT令牌的合法性 |
| | | expiration: 1800000 #JWT令牌的有效期,用于校验JWT令牌的合法性 |
| | | # expiration: 300000 #JWT令牌的有效期,用于校验JWT令牌的合法性 |
| | | header: JWTHeaderName #HTTP请求的Header名称,该Header作为参数传递JWT令牌 |
| | | userParamName: username #用户登录认证用户名参数名称 |
| | | pwdParamName: password #用户登录认证密码参数名称 |
| | | useDefaultController: true # 是否使用默认的JwtAuthController |