1. 创建项目时选中MySQL和Mybatis
    SpringBoot集成Mybatis
  2. 在核心配置文件中配置如下信息:
    SpringBoot集成Mybatis
  3. 在Mybatis的Mapper接口中添加@Mapper注解,或者在运行的主类上添加@MapperScan(“com.bjpowernode.springboot.mapper”)注解包扫描

相关文章:

  • 2021-10-30
  • 2021-05-23
猜你喜欢
  • 2021-12-26
  • 2021-09-05
相关资源
相似解决方案