- 博客(2)
- 收藏
- 关注
原创 Mybatis模糊查询
mybatis官方文档介绍如下实际使用举例:DAO接口中查询所有书籍以及模糊查询方法的重载List<Book> queryAllBooks();List<Book> queryAllBooks(String name);xml文件中对用的sql语句 <select id="queryAllBooks" resultType="book"> <bind name="param" value=" '%' + name + '%' "/>
2021-02-02 21:35:44
130
原创 mapper.xml sql语句没有设置resultType属性
日常Bug记录A query was run and no Result Maps were found for the Mapped Statement 'com.yb.mapper.BookMapper.queryBookById'. It's likely that neither a Result Type nor a Result Map was specified.A query was run and no Result Maps were found for the Mapped Sta
2021-02-02 16:50:17
548
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅