下面是Mybatis的SQL映射文件。
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <select id="findbyname" resultType="user" parameterType="String"> SELECT * FROM user1 WHERE Login_name = #{name} </select> </mapper>
原文地址:https://www.cnblogs.com/lbrs/p/11669153.html
时间: 2024-11-06 03:37:32