MyBatis不用@Param傳遞多個參數

背景 假設我們要保存一個小狗的信息到數據庫中 通常的做法 我們在使用mybatis 接口和xml對應的時候,常常是這樣寫的: 接口 public interface DogDao { void save(@Param("dogName") String dogName, @Param("age")int age); } xml <insert id="save"> INSE
相關文章
相關標籤/搜索