Mapped Statements collection does not contain value

EvelynJone 发布于 2016/09/10 10:23
阅读 550
收藏 0

使用spring mybatis进行配置,出现了一下错误:

java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for cn.bestick.easyexam.management.persistence.UserMapper.getUserByName
	org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:672)
	org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:507)
	org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:500)
	org.apache.ibatis.binding.MapperMethod.setupCommandType(MapperMethod.java:240)
	org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:71)
	org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:39)
	com.sun.proxy.$Proxy17.getUserByName(Unknown Source)
	cn.bestick.easyexam.management.security.UserDetailsServiceImpl.loadUserByUsername(UserDetailsServiceImpl.java:28)
	cn.bestick.easyexam.management.security.filter.AuthenticationFilter.attemptAuthentication(AuthenticationFilter.java:52)
	org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:195)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

我的代码列表:

我的github项目地址:https://github.com/EvelynJone/easyExam

麻烦知道的帮我看看

加载中
返回顶部
顶部