diff --git a/pom.xml b/pom.xml index 1b7a4a61..259fc937 100644 --- a/pom.xml +++ b/pom.xml @@ -25,14 +25,13 @@ runtime + - org.mybatis - mybatis - 3.5.19 + org.mybatis.spring.boot + mybatis-spring-boot-starter + 2.2.0 - - org.springframework.boot spring-boot-starter-test diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 4be01d61..50520e94 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -6,4 +6,11 @@ spring: url: jdbc:mysql://114.55.250.24:3306/dating?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 username: root password: root - driver-class-name: com.mysql.cj.jdbc.Driver \ No newline at end of file + driver-class-name: com.mysql.cj.jdbc.Driver + +mybatis: + mapper-locations: classpath:mapper/*.xml + type-aliases-package: com.bao.dating.pojo + configuration: + map-underscore-to-camel-case: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl \ No newline at end of file