SpringBoot配置Mybatis

server:
  port: 8888
spring:
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    username: root
    password: 123
    url: jdbc:mysql://localhost:3306/ota?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
  resources:
    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:D:/upload/solidityUP
  mvc:
    static-path-pattern: /**
  servlet:
    multipart:
      max-file-size: 100MB
      max-request-size: 1000MB
mybatis:
    type-aliases-package: com.online.ota.entity
    mapper-locations: classpath:mapper/*.xml
    configuration:
        map-underscore-to-camel-case: true

你可能感兴趣的:(SpringBoot配置Mybatis)