2021
09-20
09-20
Springboot整合Mybatis传值的常用方式总结
方式一:直接传接口publicinterfaceUserMapper{publicList<User>getUserById(intid);}xml<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEmapperPUBLIC"-//mybatis.org//DTDMapper3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd"><!--接口--><mappernamespace="com.lxc.springboot.mapper.UserMapper"><selectid="getUserById"resultType="com.lxc.springboot.domain.User">s...
继续阅读 >