mybatis
善亦有道
这个作者很懒,什么都没留下…
展开
-
mapper foreach循环报错 there is no getter for property named ‘item‘
Mybatis框架用foreach来循环遍历所需字段:foreach 基本语法:标签体内主要属性有item、index、collection、open、separator、closeitem:集合中元素迭代时的别名index:集合中元素迭代时的索引open:表示以什么开始separator:表示在每次进行迭代时的分隔符close 常用语where语句中,表示以什么结束<select id="getUserInfo" parameterType="hashmap" resultType="原创 2021-06-23 17:01:21 · 1349 阅读 · 2 评论 -
springboot与mybatis整合过程。
1.向pom.xml部署环境,添加运行需要的jar包<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web&...原创 2018-09-06 17:04:30 · 169 阅读 · 0 评论