mybatis笔记二
1.创建springboot项目 2.在pom文件加入mybatis等坐标 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.1</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>6.0.5</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.12</version> </dependency> 3.配置 server.port=8089 #druid���ݿ����� spring.datasource.url=jdbc:mysql://localhost:3306/user?serverTimezone=UTC spring.datasource.username=root spring.datasource.password