摘要: UserMapper public int updateUserByMap(Map map); UserMapper.xml <update id="updateUserByMap" parameterType="map"> update mybatis.user set name=#{userna 阅读全文
posted @ 2022-05-25 20:40 qiaoyizhi 阅读(217) 评论(0) 推荐(0) 编辑
摘要: UserMapper.xml <select id="getUserbyName" parameterType="String" resultType="user"> select * from mybatis.user where name like #{username} </select> U 阅读全文
posted @ 2022-05-25 20:30 qiaoyizhi 阅读(11) 评论(0) 推荐(0) 编辑
摘要: mybatis-config.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd 阅读全文
posted @ 2022-05-25 19:30 qiaoyizhi 阅读(37) 评论(0) 推荐(0) 编辑