在添加注釋
@MapperScan("com.leyou.item.mapper")的時候,如果不小心就會導包倒錯
應該導成
import tk.mybatis.spring.annotation.MapperScan;
而不是org
如果是低版本的,也可以這樣添加注釋
@tk.mybatis.spring.annotation.MapperScan
此坑使我頭痛欲裂因為debug能找出這里數據沒能傳出來,但是就是不知道哪里出問題。
在添加注釋
@MapperScan("com.leyou.item.mapper")的時候,如果不小心就會導包倒錯
應該導成
import tk.mybatis.spring.annotation.MapperScan;
而不是org
如果是低版本的,也可以這樣添加注釋
@tk.mybatis.spring.annotation.MapperScan
此坑使我頭痛欲裂因為debug能找出這里數據沒能傳出來,但是就是不知道哪里出問題。
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。