行业知识
Spring Boot 3.2.5 集成 MyBatisPlus
2026-11-01 06:22:48
来源:互联网转载
前置条件,先连接好数据库,并且数据库里新建表插入几条数据
连接mysql传送门
版本
Spring Boot 3.2.5
第一步,添加依赖
com.baomidoumybatis-plus-spring-boot3-starter3.5.5org.mybatismybatis-spring3.0.3
第二步,添加yml配置
mybatis-plus: mapper-locations: classpath*:/mapper/*Mapper.xml type-aliases-package: com.example.arrow_smart_toilet_back_01.mapper configuration: map-underscore-to-camel-case: true log-impl: org.apache.ibatis.logging.st
上一篇:服务器单宽怎么查?