application.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. # Spring配置
  12. spring:
  13. datasource:
  14. url: jdbc:mysql://47.105.116.204:3306/jiaduoduo_db?useUnicode=true&characterEncoding=utf8
  15. username: develop
  16. password: 1234.Abcd
  17. driver-class-name: com.mysql.cj.jdbc.Driver
  18. # redis 配置
  19. redis:
  20. # 地址
  21. host: localhost
  22. # 端口,默认为6379
  23. port: 6379
  24. # 密码
  25. password:
  26. # 连接超时时间
  27. timeout: 10s
  28. pool:
  29. # 连接池中的最小空闲连接
  30. min-idle: 0
  31. # 连接池中的最大空闲连接
  32. max-idle: 8
  33. # 连接池的最大数据库连接数
  34. max-active: 8
  35. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  36. max-wait: -1ms
  37. # MyBatis配置
  38. mybatis:
  39. # 搜索指定包别名
  40. typeAliasesPackage: com.platform.yijia.dao
  41. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  42. mapperLocations: classpath:mapper/*Mapper.xml
  43. # 加载全局的配置文件
  44. configLocation: classpath:mybatis/mybatis-config.xml