application.yml 906 B

12345678910111213141516171819202122232425262728293031
  1. server:
  2. port: 9090
  3. # 数据库配置
  4. spring:
  5. datasource:
  6. driver-class-name: com.mysql.cj.jdbc.Driver
  7. username: root #你本地的数据库用户名
  8. password: 123456 #你本地的数据库密码
  9. url: jdbc:mysql://localhost:3306/errand?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
  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 #下划线转驼峰(Java中驼峰写法更符合规范)
  21. # 分页
  22. pagehelper:
  23. helper-dialect: mysql
  24. reasonable: true
  25. support-methods-arguments: true
  26. params: count=countSql
  27. ip: localhost