问题描述:
在使用spring boot框架实现事务控制demo时,启动项目报错如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryTypeController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.zeber.service.QueryTypeService com.zeber.controller.admin.QueryTypeController.queryTypeService; nested exception is java.lang.IllegalArgumentException: Can not set com.zeber.service.QueryTypeService field com.zeber.controller.admin.QueryTypeController.queryTypeService to com.sun.proxy.$Proxy101
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)
at or