小工具知识网

当前位置: 首页 > 行业知识 > Spring Boot 3.2.5 集成 MyBatisPlus

行业知识

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

上一篇:服务器单宽怎么查?

下一篇:LeetCode438.找到字符串中所有字母异位词