SpringBoot pagehelper mybatis 通用yml配置
阿新 • • 發佈:2021-01-19
server: port: 9998 servlet: context-path: / spring: application: name: xxx #DB Configuration: datasource: password: 123456 driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/xxx?characterEncoding=utf8&verifyServerCertificate=false&useSSL=false&allowMultiQueries=true username: root #熱啟動 devtools: restart: enabled: true web: resources: static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,classpath:/templates/ http: multipart: enabled: true #mybatis配置 mybatis: #mapper mapper-locations: classpath:dao/*Mapper.xml #pojo type-aliases-package: com.example.xxx #sql列印 configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl pagehelper: helperDialect: mysql reasonable: false #開啟優化,如果開啟優化,在分頁頁碼結果沒有資料的時候,會顯示有資料的頁碼資料 supportMethodsArguments: true #是否支援介面引數來傳遞分頁引數,預設false pageSizeZero: false #pageSize=0 返回所有 params: count=countSql