mybatis传递多参数的问题

mybatis多参数传递遇到的异常

接口需要加@Param注解

void edit(@Param("param1") Integer id, @Param("param2") String eduName);

mapper

	<update id="edit">
		update education set eduName=#{param2} where id=#{param1}
	</update>

猜你喜欢

转载自blog.csdn.net/qq_39717535/article/details/81110458