mybatis添加新用戶

1、配置數據庫映射文件(User.xml) 在其中加入如下代碼: [html] view plain copy <!--   添加用戶   parameterType:指定輸入的參數類型是pojo   #{}中指定pojo的屬性名,接收到pojo對象的屬性值,mybatis也是通過OGNL來獲取對象的屬性值    -->   <insert id="insertUser" parameterTyp
相關文章
相關標籤/搜索