因为Spring没有收录MP,所以要自己添加MP坐标
com.baomidou
mybatis-plus-boot-starter
3.4.3
修改dao层
public interface BookDao extends baseMapper{ }
修改配置文件
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/ssm_db
username: root
password: 123456
mybatis-plus:
global-config:
db-config:
table-prefix: tbl_



