摘要: private LoginResponse redisCacheResponse() { String sessionId = "LOGINRESPONSESESSIONID"; LoginResponse loginResponse = (LoginResponse) redisTemplate. 阅读全文
posted @ 2021-09-13 17:30 小小菜包子 阅读(151) 评论(0) 推荐(0)
摘要: 在连接数据库的配置url中要加入?allowMultiQueries=true这段 然后mapper层就如下写 最后mapper.xml就是正常的写法,解释一下,我的collection="list",为什么写list,因为传入的是一个list集合,这里必须写list, 如果传入一个数组比如Inte 阅读全文
posted @ 2021-09-13 17:24 小小菜包子 阅读(229) 评论(0) 推荐(0)
摘要: Mybatis的mapper xml文件中的常用标签 一、SQL语句标签: 1、<!--查询语句--> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > selec 阅读全文
posted @ 2021-09-13 16:54 小小菜包子 阅读(843) 评论(0) 推荐(0)