application.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # 日志配置
  2. logging:
  3. level:
  4. com.ruoyi: debug
  5. org.springframework: warn
  6. # 用户配置
  7. user:
  8. password:
  9. # 密码最大错误次数
  10. maxRetryCount: 5
  11. # 密码锁定时间(默认10分钟)
  12. lockTime: 10
  13. # Spring配置
  14. spring:
  15. # 资源信息
  16. messages:
  17. # 国际化资源文件路径
  18. basename: i18n/messages
  19. profiles:
  20. active: druid
  21. # active: prod
  22. # 文件上传
  23. servlet:
  24. multipart:
  25. # 单个文件大小
  26. max-file-size: 900MB
  27. # 设置总上传的文件大小
  28. max-request-size: 900MB
  29. # 服务模块
  30. devtools:
  31. restart:
  32. # 热部署开关
  33. enabled: false
  34. # token配置
  35. token:
  36. # 令牌自定义标识
  37. header: Authorization
  38. # 令牌密钥
  39. secret: abcdefghijklmnopqrstuvwxyz123
  40. # 令牌有效期(默认30分钟)
  41. expireTime: 720
  42. # MyBatis配置
  43. mybatis:
  44. # 搜索指定包别名
  45. typeAliasesPackage: com.ruoyi.**.domain
  46. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  47. mapperLocations: classpath*:mapper/**/*Mapper.xml
  48. # 加载全局的配置文件
  49. configLocation: classpath:mybatis/mybatis-config.xml
  50. # PageHelper分页插件
  51. pagehelper:
  52. helperDialect: mysql
  53. supportMethodsArguments: true
  54. params: count=countSql
  55. # Swagger配置
  56. swagger:
  57. # 是否开启swagger
  58. enabled: false
  59. # 请求前缀
  60. pathMapping: /dev-api
  61. # 防止XSS攻击
  62. xss:
  63. # 过滤开关
  64. enabled: true
  65. # 排除链接(多个用逗号分隔)
  66. excludes: /system/notice,/new/news,/new/news/put
  67. # 匹配链接
  68. urlPatterns: /system/*,/monitor/*,/tool/*
  69. # MQTT配置
  70. mqtt:
  71. # server-uri: tcp://13.229.167.76:1883
  72. server-uri: tcp://60.171.161.56:20009
  73. # server-uri: tcp://192.168.101.147:1883
  74. # server-uri: tcp://127.0.0.1:1883
  75. client-id: JavaClientBoman
  76. username: admin
  77. password: 9o0p(O)P
  78. default-topic: toServer_leaveStat,toServer_playStat
  79. default-qos: 1
  80. timeout: 30
  81. keep-alive: 60
  82. clean-session: true
  83. auto-reconnect: true
  84. command-timeout: 10