diff --git a/springboot-mybatis/src/main/resources/application.properties b/springboot-mybatis/src/main/resources/application.properties new file mode 100644 index 0000000..c72309a --- /dev/null +++ b/springboot-mybatis/src/main/resources/application.properties @@ -0,0 +1,9 @@ +## 数据源配置 +spring.datasource.url=jdbc:mysql://127.0.0.1:3306/springbootdb?useUnicode=true&characterEncoding=utf8 +spring.datasource.username=root +spring.datasource.password=123456 +spring.datasource.driver-class-name=com.mysql.jdbc.Driver + +## Mybatis 配置 +mybatis.typeAliasesPackage=org.spring.springboot.domain +mybatis.mapperLocations=classpath:mapper/*.xml \ No newline at end of file diff --git a/springboot-mybatis/src/main/resources/mybatis-config.xml b/springboot-mybatis/src/main/resources/mybatis-config.xml deleted file mode 100644 index df395d8..0000000 --- a/springboot-mybatis/src/main/resources/mybatis-config.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - \ No newline at end of file