application.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # 开发环境配置
  2. server:
  3. # 服务器的HTTP端口,默认为8080
  4. port: 8080
  5. servlet:
  6. # 应用的访问路径
  7. context-path: /
  8. tomcat:
  9. # tomcat的URI编码
  10. uri-encoding: UTF-8
  11. # POS机查询数据分页e
  12. pagehelper:
  13. helper-dialect: mysql
  14. # 域名 路径前缀动态配置
  15. yijia:
  16. # 域名: 测试:mp.huijy.net 生产:www.huijy.net
  17. domainName: mp.huijy.net
  18. # 路径前缀 test:测试; api:生产一线;prod:生产二线; demo:演示;
  19. path:
  20. global-prefix: demo
  21. # POS机登录解密密文密码
  22. 3des:
  23. pwd: LAnZ8RRSkIY0EGVYheu2IjEk
  24. # swagger2
  25. swagger2:
  26. swagger-ui-open: true
  27. # swagger2 UI登录密码
  28. #security:
  29. # basic:
  30. # enabled: true
  31. # path: /swagger-ui.html
  32. # user:
  33. # name: admin
  34. # password: Admin@123#
  35. # Spring配置
  36. spring:
  37. datasource:
  38. # url: jdbc:mysql://47.105.116.204:3306/jiaduoduo_db_prod?useUnicode=true&characterEncoding=utf8&nullCatalogMeansCurrent=true&serverTimezone=GMT%2b8&useSSL=true
  39. url: jdbc:mysql://115.28.211.17:3306/jiaduoduo_db_demo?useUnicode=true&characterEncoding=utf8&nullCatalogMeansCurrent=true&serverTimezone=GMT%2b8&useSSL=true
  40. username: develop
  41. password: 1234.Abcd
  42. driver-class-name: com.mysql.cj.jdbc.Driver
  43. #格式化时间
  44. jackson:
  45. time-zone: GMT+8
  46. date-format: yyyy-MM-dd HH:mm:ss
  47. locale: zh_CN
  48. # redis 配置
  49. redis:
  50. # 地址
  51. host: localhost
  52. # 端口,默认为6379
  53. port: 6379
  54. # 密码
  55. password:
  56. # 连接超时时间
  57. timeout: 10s
  58. pool:
  59. # 连接池中的最小空闲连接
  60. min-idle: 0
  61. # 连接池中的最大空闲连接
  62. max-idle: 8
  63. # 连接池的最大数据库连接数
  64. max-active: 8
  65. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  66. max-wait: -1ms
  67. # MyBatis配置
  68. mybatis:
  69. # 搜索指定包别名
  70. typeAliasesPackage: com.platform.yijia.dao
  71. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  72. mapperLocations: classpath:mapper/*Mapper.xml
  73. # 加载全局的配置文件
  74. configLocation: classpath:mybatis/mybatis-config.xml