12345678910111213141516171819202122232425262728293031 |
- server:
- port: 9090
- # 数据库配置
- spring:
- datasource:
- driver-class-name: com.mysql.cj.jdbc.Driver
- username: root #你本地的数据库用户名
- password: 123456 #你本地的数据库密码
- url: jdbc:mysql://localhost:3306/errand?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
- servlet:
- multipart:
- max-file-size: 100MB
- max-request-size: 100MB
- # 配置mybatis实体和xml映射
- mybatis:
- mapper-locations: classpath:mapper/*.xml
- type-aliases-package: com.example.entity
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- map-underscore-to-camel-case: true #下划线转驼峰(Java中驼峰写法更符合规范)
- # 分页
- pagehelper:
- helper-dialect: mysql
- reasonable: true
- support-methods-arguments: true
- params: count=countSql
- ip: localhost
|