摘要: MyBatis缓存 (1)一级缓存 1.查询两次相同的数据 测试: @Test public void test(){ SqlSession sqlSession = MybatisUtils.getSqlSession(); UserMapper mapper = sqlSession.getMa 阅读全文
posted @ 2021-12-24 13:31 卡卡发 阅读(51) 评论(0) 推荐(0)
摘要: 1.if语句 BlogMapper: //查询 List<Blog> queryBlog(Map map); BlogMapper.xml: <select id="queryBlog" parameterType="map" resultType="com.kakafa.pojo.Blog"> s 阅读全文
posted @ 2021-12-24 10:50 卡卡发 阅读(29) 评论(0) 推荐(0)