摘要:
UserMapper public int updateUserByMap(Map map); UserMapper.xml <update id="updateUserByMap" parameterType="map"> update mybatis.user set name=#{userna 阅读全文
摘要:
UserMapper.xml <select id="getUserbyName" parameterType="String" resultType="user"> select * from mybatis.user where name like #{username} </select> U 阅读全文
摘要:
mybatis-config.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd 阅读全文