sqlSessionFactory构建时出现问题

在SqlSession sqlSession = sqlSessionFactory.openSession();中传递了TRUE之后build就开始报错了

报错代码:
org.apache.ibatis.exceptions.PersistenceException:

Error building SqlSession.

The error may exist in com/itheima/mapper/BrandMapper.xml

The error occurred while processing mapper_resultMap[brandResultMap]

Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'com/itheima/mapper/BrandMapper.xml'. Cause: org.apache.ibatis.builder.BuilderException: Parsing error was found in mapping #{}. Check syntax #{property|(expression), var1=value1, var2=value2, ...}

img

com/itheima/mapper/BrandMapper.xml中存在问题,看下里面的配置。

最好将BrandMapper 接口代码贴出来

img

您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632