application.yml 804 B

12345678910111213141516171819202122232425262728293031
  1. server:
  2. port: 2441
  3. # 数据库配置
  4. spring:
  5. profiles:
  6. active: druid # 使用druid这个配置文件的配置
  7. url: jdbc:mysql://localhost:3306/fruit_farmer?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
  8. username: root
  9. password: 0714@Xhy
  10. servlet:
  11. multipart:
  12. max-file-size: 100MB
  13. max-request-size: 100MB
  14. # 配置mybatis实体和xml映射
  15. mybatis:
  16. mapper-locations: classpath:mapper/*.xml
  17. type-aliases-package: com.example.entity
  18. configuration:
  19. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  20. map-underscore-to-camel-case: true
  21. # 分页
  22. pagehelper:
  23. helper-dialect: mysql
  24. reasonable: true
  25. support-methods-arguments: true
  26. params: count=countSql
  27. ip: localhost