会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132600个问题
JAVA 全系列/第二阶段:JAVA 基础深化和提高/容器(旧) 24617楼

1、老师您好,部署consumer时,运行tomcat7:run 报错如下。详细错误在附件里。老师帮忙给看下吧。百度好久没有答案。

完整错误.txt




严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed;
 nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.bjsxt.dubbo.service.AddUserDubboService com.bjsxt.service.impl.UserServiceImpl.addUserDubboService;
 nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'addUserDubboService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException:
 Failed to check the status of the service com.bjsxt.dubbo.service.AddUserDubboService. No provider available for the service com.bjsxt.dubbo.service.AddUserDubboService from the url zookeeper://192.168.243.128:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=myconsumer1111&check=false&dubbo=2.5.4&generic=false&interface=com.bjsxt.dubbo.service.AddUserDubboService&methods=addUser&pid=792&revision=0.0.1-SNAPSHOT&side=consumer&timeout=300000&timestamp=1565435252238 to the consumer 192.168.243.1 use dubbo version 2.5.4
   
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.bjsxt.dubbo.service.AddUserDubboService com.bjsxt.service.impl.UserServiceImpl.addUserDubboService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'addUserDubboService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.bjsxt.dubbo.service.AddUserDubboService. No provider available for the service com.bjsxt.dubbo.service.AddUserDubboService from the url zookeeper://192.168.243.128:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=myconsumer1111&check=false&dubbo=2.5.4&generic=false&interface=com.bjsxt.dubbo.service.AddUserDubboService&methods=addUser&pid=792&revision=0.0.1-SNAPSHOT&side=consumer&timeout=300000&timestamp=1565435252238 to the consumer 192.168.243.1 use dubbo version 2.5.4
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'addUserDubboService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.bjsxt.dubbo.service.AddUserDubboService. No provider available for the service com.bjsxt.dubbo.service.AddUserDubboService from the url zookeeper://192.168.243.128:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=myconsumer1111&check=false&dubbo=2.5.4&generic=false&interface=com.bjsxt.dubbo.service.AddUserDubboService&methods=addUser&pid=792&revision=0.0.1-SNAPSHOT&side=consumer&timeout=300000&timestamp=1565435252238 to the consumer 192.168.243.1 use dubbo version 2.5.4
Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.bjsxt.dubbo.service.AddUserDubboService. No provider available for the service com.bjsxt.dubbo.service.AddUserDubboService from the url zookeeper://192.168.243.128:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=myconsumer1111&check=false&dubbo=2.5.4&generic=false&interface=com.bjsxt.dubbo.service.AddUserDubboService&methods=addUser&pid=792&revision=0.0.1-SNAPSHOT&side=consumer&timeout=300000&timestamp=1565435252238 to the consumer 192.168.243.1 use dubbo version 2.5.4
   

JAVA 全系列/(旧的隐藏)第七阶段:JAVA 高级技术/Dubbo 24619楼
Python 全系列/第十五阶段:Python 爬虫开发/爬虫反反爬 24620楼
Python 全系列/第二阶段:Python 深入与提高/文件处理 24626楼

from tkinter import *


class Application(Frame):
    def __init__(self,master=None):
        super().__init__(master)
        self.master = master
        self.pack()

        self.createWight()

    def createWight(self):
        btnTEXT = (("MC", "M+", "M-", "MR"),
                   ("C", "±", "/", "*"),
                   (7,8,9,"-"),
                   (4,5,6,"+"),
                   (0,1,2,"="),
                   (0,"."))
        Entry(self).grid(row=0,column=0, columnspan=4,pady=10)
        for rindex,r in enumerate(btnTEXT):
            for cindex,c in enumerate(r):
                if c == "=":
                    Button(self,text=c,width=2).grid(row=1+rindex,column=cindex, rowspan=2,sticky=NSEW)
                elif c == "0":
                    Button(self,text=c,width=2).grid(row=1+rindex,column=cindex, columnspan=2, sticky=NSEW)
                elif c == ".":
                    Button(self,text=c,width=2).grid(row=1+rindex,column=cindex+1, sticky=NSEW)
                else:
                    Button(self,text=c,width=2).grid(row=1+rindex,column=cindex,sticky=NSEW)



if __name__ == '__main__':
    root = Tk()
    root.title("计算器")
    root.geometry("300x300+200+300")
    app = Application(master=root)
    root.mainloop()

老师,和您的一样,0为啥没有跨列

121ef5b2129d5061242c87b7009e7f1.png

Python 全系列/第二阶段:Python 深入与提高/GUI编程(隐藏) 24628楼
JAVA 全系列/(旧的隐藏)第十一阶段:spring全家桶(Spring Boot)/Spring Boot 24630楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637