Mybatis错误

错误[1]
	java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.sunlands.advertise.delivertool.dao.DeliverToolKeywordDao.updateQiHuKeyword
		at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:776) ~[mybatis-3.2.3.jar:3.2.3]
		at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:748) ~[mybatis-3.2.3.jar:3.2.3]
		at org.apache.ibatis.session.Configuration.addMappedStatement(Configuration.java:578) ~[mybatis-3.2.3.jar:3.2.3]
		at org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement(MapperBuilderAssistant.java:315) ~[mybatis-3.2.3.jar:3.2.3]
		at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parseStatement(MapperAnnotationBuilder.java:300) ~[mybatis-3.2.3.jar:3.2.3]
		at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:121) ~[mybatis-3.2.3.jar:3.2.3]
		at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:66) ~[mybatis-3.2.3.jar:3.2.3]
		at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:651) ~[mybatis-3.2.3.jar:3.2.3]
		at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:97) ~[mybatis-spring-1.2.1.jar:1.2.1]
		at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44) [spring-tx-3.2.8.RELEASE.jar:3.2.8.RELEASE]
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571) [spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509) [spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) [spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]

	分析:使用mybatis注解实现的DAO方法,不支持方法的重载,即方法名必须唯一。

	
错误[2]
	org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.sunlands.landpage.page.dao.LandpagePageDao.getPageListTotalCount
	
	分析:可能是由于在SQL中使用了 < > & 等特殊字符引起的
	解决方法:使用&lt; &gt; &amp;来表示这些特殊字符。
	
	


	

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值