开发者社区> 问答> 正文

求大神解决个错误,跪求?报错

别人写的代码报错,找了一个早上就是没找到,求大神帮忙解决一下

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'api-userLogin': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.suneee.sso.admin.service.IAdminUserLoginService com.suneee.cloud.user.UserLoginServiceImpl.iAdminUserLoginService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'iAdminUserLoginService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.suneee.sso.admin.service.IAdminUserLoginService. No provider available for the service com.suneee.sso.admin.service.IAdminUserLoginService from the url zookeeper://172.19.6.120:2181/com.alibaba.dubbo.registry.RegistryService?application=consumer-suneee-cloud&dubbo=2.8.4a&interface=com.suneee.sso.admin.service.IAdminUserLoginService&methods=test,loginOut,getAdministrator,login&pid=36296&side=consumer&timestamp=1463887732153 to the consumer 172.19.5.203 use dubbo version 2.8.4a at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) [spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) [jetty-6.1.25.jar:6.1.25] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) [jetty-6.1.25.jar:6.1.25] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1272) [jetty-6.1.25.jar:6.1.25] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) [jetty-6.1.25.jar:6.1.25] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489) [jetty-6.1.25.jar:6.1.25] at org.gradle.api.plugins.jetty.internal.JettyPluginWebAppContext.doStart(JettyPluginWebAppContext.java:112) [gradle-jetty-2.9.jar:2.9] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.25.jar:6.1.25] at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) [jetty-6.1.25.jar:6.1.25] at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) [jetty-6.1.25.jar:6.1.25] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.25.jar:6.1.25] at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) [jetty-6.1.25.jar:6.1.25] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.25.jar:6.1.25] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [jetty-6.1.25.jar:6.1.25] at org.mortbay.jetty.Server.doStart(Server.java:224) [jetty-6.1.25.jar:6.1.25] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.25.jar:6.1.25] at org.gradle.api.plugins.jetty.internal.Jetty6PluginServer.start(Jetty6PluginServer.java:111) [gradle-jetty-2.9.jar:2.9] at org.gradle.api.plugins.jetty.AbstractJettyRunTask.startJettyInternal(AbstractJettyRunTask.java:238) [gradle-jetty-2.9.jar:2.9] at org.gradle.api.plugins.jetty.AbstractJettyRunTask.startJetty(AbstractJettyRunTask.java:191) [gradle-jetty-2.9.jar:2.9] at org.gradle.api.plugins.jetty.AbstractJettyRunTask.start(AbstractJettyRunTask.java:162) [gradle-jetty-2.9.jar:2.9] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_65] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75) [gradle-base-services-2.9.jar:2.9] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:227) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) [gradle-core-2.9.jar:2.9] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) [gradle-core-2.9.jar:2.9] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203) [gradle-core-2.9.jar:2.9] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185) [gradle-core-2.9.jar:2.9] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66) [gradle-core-2.9.jar:2.9] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50) [gradle-core-2.9.jar:2.9] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25) [gradle-core-2.9.jar:2.9] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110) [gradle-core-2.9.jar:2.9] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) [gradle-core-2.9.jar:2.9] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) [gradle-core-2.9.jar:2.9] at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23) [gradle-core-2.9.jar:2.9] at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43) [gradle-core-2.9.jar:2.9] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) [gradle-core-2.9.jar:2.9] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) [gradle-core-2.9.jar:2.9] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30) [gradle-core-2.9.jar:2.9] at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154) [gradle-core-2.9.jar:2.9] at org.gradle.internal.Factories$1.create(Factories.java:22) [gradle-base-services-2.9.jar:2.9] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) [gradle-core-2.9.jar:2.9] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52) [gradle-core-2.9.jar:2.9] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151) [gradle-core-2.9.jar:2.9] at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32) [gradle-core-2.9.jar:2.9] at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99) [gradle-core-2.9.jar:2.9] at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93) [gradle-core-2.9.jar:2.9] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) [gradle-core-2.9.jar:2.9] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62) [gradle-core-2.9.jar:2.9] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93) [gradle-core-2.9.jar:2.9] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82) [gradle-core-2.9.jar:2.9] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94) [gradle-launcher-2.9.jar:2.9] at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43) [gradle-launcher-2.9.jar:2.9] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170) [gradle-base-services-2.9.jar:2.9] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.Main.doAction(Main.java:33) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) [gradle-launcher-2.9.jar:2.9] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_65] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35) [gradle-launcher-2.9.jar:2.9] at org.gradle.launcher.GradleMain.main(GradleMain.java:23) [gradle-launcher-2.9.jar:2.9] Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.suneee.sso.admin.service.IAdminUserLoginService com.suneee.cloud.user.UserLoginServiceImpl.iAdminUserLoginService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'iAdminUserLoginService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.suneee.sso.admin.service.IAdminUserLoginService. No provider available for the service com.suneee.sso.admin.service.IAdminUserLoginService from the url zookeeper://172.19.6.120:2181/com.alibaba.dubbo.registry.RegistryService?application=consumer-suneee-cloud&dubbo=2.8.4a&interface=com.suneee.sso.admin.service.IAdminUserLoginService&methods=test,loginOut,getAdministrator,login&pid=36296&side=consumer&timestamp=1463887732153 to the consumer 172.19.5.203 use dubbo version 2.8.4a at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] ... 105 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'iAdminUserLoginService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.suneee.sso.admin.service.IAdminUserLoginService. No provider available for the service com.suneee.sso.admin.service.IAdminUserLoginService from the url zookeeper://172.19.6.120:2181/com.alibaba.dubbo.registry.RegistryService?application=consumer-suneee-cloud&dubbo=2.8.4a&interface=com.suneee.sso.admin.service.IAdminUserLoginService&methods=test,loginOut,getAdministrator,login&pid=36296&side=consumer&timestamp=1463887732153 to the consumer 172.19.5.203 use dubbo version 2.8.4a at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1585) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] ... 107 common frames omitted Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.suneee.sso.admin.service.IAdminUserLoginService. No provider available for the service com.suneee.sso.admin.service.IAdminUserLoginService from the url zookeeper://172.19.6.120:2181/com.alibaba.dubbo.registry.RegistryService?application=consumer-suneee-cloud&dubbo=2.8.4a&interface=com.suneee.sso.admin.service.IAdminUserLoginService&methods=test,loginOut,getAdministrator,login&pid=36296&side=consumer&timestamp=1463887732153 to the consumer 172.19.5.203 use dubbo version 2.8.4a at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420) ~[dubbo-2.8.4a.jar:2.8.4a] at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300) ~[dubbo-2.8.4a.jar:2.8.4a] at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138) ~[dubbo-2.8.4a.jar:2.8.4a] at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65) ~[dubbo-2.8.4a.jar:2.8.4a] at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] ... 115 common frames omitted



展开
收起
爱吃鱼的程序员 2020-06-09 14:28:18 608 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    IAdminUserLoginService说是定义为私有的 这个加bean加载错误 

     autowire异常主要由三个情况发生的

    像上面的情况是BrandDao没有注入,


    1。你的BrandServiceImpl必须以@Service或@Component注解才行。

     

    2。自动写入的时候把接口写成实现类了 
    @Autowired 
    privateBrandServiceImpl     brandServiceImpl; 
    应该是 
    @Autowired 
    privateBrandService   brandService;

     

    3.在BrandDao类上加上@Repository注解

    哇,你还是个美女呀<imgsrc="/js/ke/plugins/emoticons/2.gif"alt="2"/>刚开始我也以为是这个问题,谢谢你帮我,已经解决了,仔细检查了一下是还有一个服务没有启动

    2020-06-09 14:28:36
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
15分钟打造你自己的小程序更新版 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载