Architecture About ssm, the modification to achieve the functionality.

Before we must first modify the query

 

 

Ku! --increase--

<insert id="adduserparametertype=com zhongruan bean. User>

</insert>insert into tb_ user(id, username, password)values(#(id], #(username),#(password))

! - Query before the amendment

select id=findupduserby Id parameter Type=Java.langInteger resulttype=com zhongruan bean. Userselect * from tb user where id=#[id)

</select>

! --modify

<update id="upduserbyid"parameter Type="com zhongruan bean. User">

</update>update tb user set username=#(username), password=#password where id=#(id)

 

Guess you like

Origin blog.csdn.net/qq_42254122/article/details/94738193