1.
FeedbackManagerTest.test_insert_success
initializationError(org.junit.runner.manipulation.Filter)
(问题原因:没有在相应的测试方法上加@Test)
*********************************************************************************************************************************
2.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'admin.manager.FeedbackManagerTest': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [admin.manager.FeedbackManager] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
(问题原因:在ApplicationContext_test.xml中增加关于feedbackManager的bean)
**************************************************************************************************************************************
3.
Cannot find class [admin.manager.impl。FeedbackManagerImpl] for bean with name 'feedbackManager' defined in class path resource [applicationContext-test.xml]; nested exception is java.lang.ClassNotFoundException: com.taobao.kelude.admin.manager.impl。FeedbackManagerImpl
(问题原因:写类的路径时.写成了。)
*********************************************************
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): admin.mapper.FeedbackMapper.insert
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:178)
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:38)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:49)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:42)
(问题原因:在增加了映射文件Feedback.xml,未在admin/dal/mybatis.xml中增加相应的映射到该映射文件)
**********************************************************************************************************
4.
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'islike' in 'class com.taobao.kelude.admin.model.Feedback'
(问题原因:Feedback.java中的islike写的是isLike,与Feedback.xml中的islike不一样,无法自动注入)
FeedbackManagerTest.test_insert_success
initializationError(org.junit.runner.manipulation.Filter)
(问题原因:没有在相应的测试方法上加@Test)
*********************************************************************************************************************************
2.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'admin.manager.FeedbackManagerTest': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [admin.manager.FeedbackManager] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
(问题原因:在ApplicationContext_test.xml中增加关于feedbackManager的bean)
**************************************************************************************************************************************
3.
Cannot find class [admin.manager.impl。FeedbackManagerImpl] for bean with name 'feedbackManager' defined in class path resource [applicationContext-test.xml]; nested exception is java.lang.ClassNotFoundException: com.taobao.kelude.admin.manager.impl。FeedbackManagerImpl
(问题原因:写类的路径时.写成了。)
*********************************************************
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): admin.mapper.FeedbackMapper.insert
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:178)
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:38)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:49)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:42)
(问题原因:在增加了映射文件Feedback.xml,未在admin/dal/mybatis.xml中增加相应的映射到该映射文件)
**********************************************************************************************************
4.
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'islike' in 'class com.taobao.kelude.admin.model.Feedback'
(问题原因:Feedback.java中的islike写的是isLike,与Feedback.xml中的islike不一样,无法自动注入)