会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132476个问题
JAVA 全系列/第六阶段:项目管理与SSM框架/Mybatis 13876楼
Python 全系列/第一阶段:Python入门/编程基本概念 13877楼

from tkinter import *
# from tkinter import messagebox
import webbrowser
class Application(Frame):
    def __init__(self,master=None):
        super().__init__(master)   #super代表父类的定义,而不是父类的对象
        self.master=master
        self.pack()
        self.createWidget()

    def createWidget(self):
        self.w1=Text(root,width=40,height=12,bg="gray")
        # 宽度20个字母(10个汉字),高度一个行高
        self.w1.pack()
        self.w1.insert(1.0,"0123456789\nabcdefg")
        self.w1.insert(2.3,"锄禾日当午,汗滴禾下土。谁知盘中餐,粒粒皆辛苦\n")
        Button(self, text="重复插入文本",command=self.insertText).pack(side="left")
        Button(self, text="返回文本",command=self.returnText).pack(side="left")
        Button(self, text="添加图片",command=self.addImage).pack(side="left")
        Button(self, text="添加组件",command=self.addWidget).pack(sode="left")
        Button(self, text="通过tag精确控制文本",command=self.testTag).pack(side="left")

    def insertText(self):
        # Insert索引表示在光标处插入
        self.w1.insert(INSERT,"Gaoqi")
        #End索引号所以表示在最后插入
        self.w1.insert(END,"[sxt]")
        self.w1.insert(1.8, "gaoqi")

    def returnText(self):
        # Indexes(索引)是用来指向Text组件中文本的位置,Text的组件索引也是对应实际字符之间的位置
        # 核心:行号以1开始,列号以0开始
        print(self.w1.get(1.2,1.6))
        print("所有文本内容:\n"+self.w1.get(1.0,END))

    def addImage(self):
        # global photo
        self.photo=PhotoImage(file="imgs/logo1.png")
        self.w1.image_create(END,image=self.photo)

    def addWidget(self):
        b1=Button(self.w1,text="尚学堂")
        # 在text创建组件的命令
        self.w1.window_create(INSERT,window=b1)

    def textTag(self):
        self.w1.delete(1.0,END)
        self.w1.insert(INSERT,"good good good study,day day up\n北京尚学堂\n百战程序员\n希望2020年会心想事成")
        self.w1.tag_add("good", 1.0, 1.9)
        self.w1.tag_config("good", background="yellow", foreground="red")
        self.w1.tag_add("baidu",4.0,4.2)
        self.w1.tag_config("baidu",underline=True)
        self.w1.tag_bind("baidu","<Button-1>",self.webshow)
    def webshow(self,event):
        webbrowser.open("http://www.baidu.com")

if __name__ == "__main__":
    root = Tk()
    root.geometry("400x130+200+300")
    #root.title("一个经典的GUI程序类的测试")
    app=Application(master=root)
    root.mainloop()

Traceback (most recent call last):

  File "D:\AAAAAAAAApython\gui\my05.py", line 62, in <module>

    app=Application(master=root)

  File "D:\AAAAAAAAApython\gui\my05.py", line 10, in __init__

    self.createWidget()

  File "D:\AAAAAAAAApython\gui\my05.py", line 21, in createWidget

    Button(self, text="添加组件",command=self.addWidget).pack(sode="left")

  File "D:\lib\tkinter\__init__.py", line 2425, in pack_configure

    self.tk.call(

_tkinter.TclError: bad option "-sode": must be -after, -anchor, -before, -expand, -fill, -in, -ipadx, -ipady, -padx, -pady, or -side

老师我为什么报这么错啊

Python 全系列/第二阶段:Python 深入与提高/GUI编程(隐藏) 13878楼
Python 全系列/第十阶段:Flask百战电商后台项目/Flask百战电商后台项目 13879楼
微服务/第十二阶段:亿级高并发电商项目/电商:创建订单及订单邮件 13881楼
JAVA 全系列/第六阶段:项目管理与SSM框架/Mybatis 13883楼

parent.zip

老师,为什么我这个Start一开起来就成这样了

D:\study-software\jdk\jdk-13.0.2\bin\java.exe "-javaagent:D:\study-software\IDEA2020.2.1\IntelliJ IDEA 2020.2.1\lib\idea_rt.jar=59278:D:\study-software\IDEA2020.2.1\IntelliJ IDEA 2020.2.1\bin" -Dfile.encoding=UTF-8 -classpath D:\study-software\IDEA2020.2.1\workspaces\dubbo\parent\provider\target\classes;D:\study-software\IDEA2020.2.1\workspaces\dubbo\parent\api\target\classes;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\springframework\spring-context\5.2.5.RELEASE\spring-context-5.2.5.RELEASE.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\springframework\spring-aop\5.2.5.RELEASE\spring-aop-5.2.5.RELEASE.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\springframework\spring-beans\5.2.5.RELEASE\spring-beans-5.2.5.RELEASE.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\springframework\spring-core\5.2.5.RELEASE\spring-core-5.2.5.RELEASE.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\springframework\spring-jcl\5.2.5.RELEASE\spring-jcl-5.2.5.RELEASE.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\springframework\spring-expression\5.2.5.RELEASE\spring-expression-5.2.5.RELEASE.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo\2.7.6\dubbo-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\com\alibaba\spring\spring-context-support\1.0.6\spring-context-support-1.0.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo-registry-zookeeper\2.7.6\dubbo-registry-zookeeper-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo-registry-api\2.7.6\dubbo-registry-api-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo-common\2.7.6\dubbo-common-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\com\alibaba\fastjson\1.2.60\fastjson-1.2.60.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\commons-io\commons-io\2.6\commons-io-2.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\javax\annotation\javax.annotation-api\1.3.1\javax.annotation-api-1.3.1.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo-cluster\2.7.6\dubbo-cluster-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo-rpc-api\2.7.6\dubbo-rpc-api-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo-container-api\2.7.6\dubbo-container-api-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo-metadata-api\2.7.6\dubbo-metadata-api-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo-remoting-zookeeper\2.7.6\dubbo-remoting-zookeeper-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo-remoting-api\2.7.6\dubbo-remoting-api-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\dubbo\dubbo-serialization-api\2.7.6\dubbo-serialization-api-2.7.6.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\zookeeper\zookeeper\3.4.13\zookeeper-3.4.13.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\jline\jline\0.9.94\jline-0.9.94.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\study-software\IDEA2020.2.1\localideamaven\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar com.bjsxt.dubbo.Start

? 2022-01-05 05:13:44  using logger: org.apache.dubbo.common.logger.log4j.Log4jLoggerAdapter 

org.apache.dubbo.container.Main 2022-01-05 05:13:45   [DUBBO] Duplicate class org/apache/dubbo/common/Version.class in 2 jar [file:/D:/study-software/IDEA2020.2.1/localideamaven/repository/org/apache/dubbo/dubbo/2.7.6/dubbo-2.7.6.jar!/org/apache/dubbo/common/Version.class, file:/D:/study-software/IDEA2020.2.1/localideamaven/repository/org/apache/dubbo/dubbo-common/2.7.6/dubbo-common-2.7.6.jar!/org/apache/dubbo/common/Version.class], dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.container.Main 2022-01-05 05:13:45   [DUBBO] Use container type([spring]) to run dubbo serivce., dubbo version: 2.7.6, current host: 169.254.102.205 

org.springframework.context.support.AbstractApplicationContext 2022-01-05 05:13:45  Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@6b09bb57 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  DefaultListableBeanFactory will register annotated classes : [class org.apache.dubbo.config.spring.context.DubboLifecycleComponentApplicationListener] . 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  DefaultListableBeanFactory will register annotated classes : [class org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener] . 

com.alibaba.spring.util.BeanRegistrar 2022-01-05 05:13:45  The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.annotation.DubboConfigAliasPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigAliasPostProcessor] has been registered. 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  The annotatedClass[class : org.apache.dubbo.config.spring.context.DubboLifecycleComponentApplicationListener , bean name : dubboLifecycleComponentApplicationListener] was present in registry[org.springframework.beans.factory.support.DefaultListableBeanFactory@77888435: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,dubboLifecycleComponentApplicationListener,dubboBootstrapApplicationListener,dubboConfigAliasPostProcessor,myProvider]; root of factory hierarchy] 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  DefaultListableBeanFactory will register annotated classes : [class org.apache.dubbo.config.spring.context.DubboLifecycleComponentApplicationListener] . 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  The annotatedClass[class : org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener , bean name : dubboBootstrapApplicationListener] was present in registry[org.springframework.beans.factory.support.DefaultListableBeanFactory@77888435: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,dubboLifecycleComponentApplicationListener,dubboBootstrapApplicationListener,dubboConfigAliasPostProcessor,myProvider]; root of factory hierarchy] 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  DefaultListableBeanFactory will register annotated classes : [class org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener] . 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  The annotatedClass[class : org.apache.dubbo.config.spring.context.DubboLifecycleComponentApplicationListener , bean name : dubboLifecycleComponentApplicationListener] was present in registry[org.springframework.beans.factory.support.DefaultListableBeanFactory@77888435: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,dubboLifecycleComponentApplicationListener,dubboBootstrapApplicationListener,dubboConfigAliasPostProcessor,myProvider,org.apache.dubbo.config.RegistryConfig]; root of factory hierarchy] 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  DefaultListableBeanFactory will register annotated classes : [class org.apache.dubbo.config.spring.context.DubboLifecycleComponentApplicationListener] . 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  The annotatedClass[class : org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener , bean name : dubboBootstrapApplicationListener] was present in registry[org.springframework.beans.factory.support.DefaultListableBeanFactory@77888435: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,dubboLifecycleComponentApplicationListener,dubboBootstrapApplicationListener,dubboConfigAliasPostProcessor,myProvider,org.apache.dubbo.config.RegistryConfig]; root of factory hierarchy] 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  DefaultListableBeanFactory will register annotated classes : [class org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener] . 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  The annotatedClass[class : org.apache.dubbo.config.spring.context.DubboLifecycleComponentApplicationListener , bean name : dubboLifecycleComponentApplicationListener] was present in registry[org.springframework.beans.factory.support.DefaultListableBeanFactory@77888435: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,dubboLifecycleComponentApplicationListener,dubboBootstrapApplicationListener,dubboConfigAliasPostProcessor,myProvider,org.apache.dubbo.config.RegistryConfig,dubbo]; root of factory hierarchy] 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  DefaultListableBeanFactory will register annotated classes : [class org.apache.dubbo.config.spring.context.DubboLifecycleComponentApplicationListener] . 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  The annotatedClass[class : org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener , bean name : dubboBootstrapApplicationListener] was present in registry[org.springframework.beans.factory.support.DefaultListableBeanFactory@77888435: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,dubboLifecycleComponentApplicationListener,dubboBootstrapApplicationListener,dubboConfigAliasPostProcessor,myProvider,org.apache.dubbo.config.RegistryConfig,dubbo]; root of factory hierarchy] 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  DefaultListableBeanFactory will register annotated classes : [class org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener] . 

com.alibaba.spring.util.BeanRegistrar 2022-01-05 05:13:45  The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [referenceAnnotationBeanPostProcessor] has been registered. 

com.alibaba.spring.util.BeanRegistrar 2022-01-05 05:13:45  The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.config.DubboConfigDefaultPropertyValueBeanPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigDefaultPropertyValueBeanPostProcessor] has been registered. 

org.springframework.beans.factory.xml.XmlBeanDefinitionReader 2022-01-05 05:13:45  Loaded 14 bean definitions from file [D:\study-software\IDEA2020.2.1\workspaces\dubbo\parent\provider\target\classes\META-INF\spring\spring-dubbo.xml] 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'dubboConfigAliasPostProcessor' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor#0' 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  The annotatedClass[class : org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener , bean name : dubboBootstrapApplicationListener] was present in registry[org.springframework.beans.factory.support.DefaultListableBeanFactory@77888435: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,dubboLifecycleComponentApplicationListener,dubboBootstrapApplicationListener,dubboConfigAliasPostProcessor,myProvider,org.apache.dubbo.config.RegistryConfig,dubbo,referenceAnnotationBeanPostProcessor,dubboConfigDefaultPropertyValueBeanPostProcessor,org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor#0]; root of factory hierarchy] 

com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils 2022-01-05 05:13:45  DefaultListableBeanFactory will register annotated classes : [class org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener] . 

org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor 2022-01-05 05:13:45   [DUBBO] BeanNameGenerator bean can't be found in BeanFactory with name [org.springframework.context.annotation.internalConfigurationBeanNameGenerator], dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor 2022-01-05 05:13:45   [DUBBO] BeanNameGenerator will be a instance of org.springframework.context.annotation.AnnotationBeanNameGenerator , it maybe a potential problem on bean name generation., dubbo version: 2.7.6, current host: 169.254.102.205 

org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider 2022-01-05 05:13:45  Identified candidate component class: file [D:\study-software\IDEA2020.2.1\workspaces\dubbo\parent\provider\target\classes\com\bjsxt\dubbo\service\impl\DemoDubboServiceImpl.class] 

org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider 2022-01-05 05:13:45  Identified candidate component class: file [D:\study-software\IDEA2020.2.1\workspaces\dubbo\parent\provider\target\classes\com\bjsxt\dubbo\service\impl\DemoDubboServiceImpl.class] 

org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor 2022-01-05 05:13:45   [DUBBO] The BeanDefinition[Root bean: class [org.apache.dubbo.config.spring.ServiceBean]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] of ServiceBean has been registered with name : ServiceBean:com.bjsxt.dubbo.service.DemoDubboService, dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor 2022-01-05 05:13:45   [DUBBO] 1 annotated Dubbo's @Service Components { [Bean definition with name 'demoDubboServiceImpl': Generic bean: class [com.bjsxt.dubbo.service.impl.DemoDubboServiceImpl]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [D:\study-software\IDEA2020.2.1\workspaces\dubbo\parent\provider\target\classes\com\bjsxt\dubbo\service\impl\DemoDubboServiceImpl.class]] } were scanned under package[com.bjsxt.dubbo.service.impl], dubbo version: 2.7.6, current host: 169.254.102.205 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerProcessor' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'referenceAnnotationBeanPostProcessor' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'dubboConfigDefaultPropertyValueBeanPostProcessor' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'dubboLifecycleComponentApplicationListener' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:45  Creating shared instance of singleton bean 'dubboBootstrapApplicationListener' 

org.apache.dubbo.config.spring.extension.SpringExtensionFactory 2022-01-05 05:13:45   [DUBBO] No spring extension (bean) named:monitor, try to find an extension (bean) of type org.apache.dubbo.config.MonitorConfig, dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.config.spring.extension.SpringExtensionFactory 2022-01-05 05:13:45   [DUBBO] No spring extension (bean) named:application, try to find an extension (bean) of type org.apache.dubbo.config.ApplicationConfig, dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.config.spring.extension.SpringExtensionFactory 2022-01-05 05:13:45   [DUBBO] No spring extension (bean) named:module, try to find an extension (bean) of type org.apache.dubbo.config.ModuleConfig, dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.config.spring.extension.SpringExtensionFactory 2022-01-05 05:13:45   [DUBBO] No spring extension (bean) named:metrics, try to find an extension (bean) of type org.apache.dubbo.config.MetricsConfig, dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.config.spring.extension.SpringExtensionFactory 2022-01-05 05:13:45   [DUBBO] No spring extension (bean) named:ssl, try to find an extension (bean) of type org.apache.dubbo.config.SslConfig, dubbo version: 2.7.6, current host: 169.254.102.205 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:46  Creating shared instance of singleton bean 'myProvider' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:46  Creating shared instance of singleton bean 'org.apache.dubbo.config.RegistryConfig' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:46  Creating shared instance of singleton bean 'dubbo' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:46  Creating shared instance of singleton bean 'demoDubboServiceImpl' 

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 2022-01-05 05:13:46  Creating shared instance of singleton bean 'ServiceBean:com.bjsxt.dubbo.service.DemoDubboService' 

org.apache.dubbo.common.extension.AdaptiveClassCodeGenerator 2022-01-05 05:13:46   [DUBBO] package org.apache.dubbo.rpc;

import org.apache.dubbo.common.extension.ExtensionLoader;

public class Protocol$Adaptive implements org.apache.dubbo.rpc.Protocol {

public void destroy()  {

throw new UnsupportedOperationException("The method public abstract void org.apache.dubbo.rpc.Protocol.destroy() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!");

}

public int getDefaultPort()  {

throw new UnsupportedOperationException("The method public abstract int org.apache.dubbo.rpc.Protocol.getDefaultPort() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!");

}

public org.apache.dubbo.rpc.Exporter export(org.apache.dubbo.rpc.Invoker arg0) throws org.apache.dubbo.rpc.RpcException {

if (arg0 == null) throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument == null");

if (arg0.getUrl() == null) throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument getUrl() == null");

org.apache.dubbo.common.URL url = arg0.getUrl();

String extName = ( url.getProtocol() == null ? "dubbo" : url.getProtocol() );

if(extName == null) throw new IllegalStateException("Failed to get extension (org.apache.dubbo.rpc.Protocol) name from url (" + url.toString() + ") use keys([protocol])");

org.apache.dubbo.rpc.Protocol extension = (org.apache.dubbo.rpc.Protocol)ExtensionLoader.getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName);

return extension.export(arg0);

}

public org.apache.dubbo.rpc.Invoker refer(java.lang.Class arg0, org.apache.dubbo.common.URL arg1) throws org.apache.dubbo.rpc.RpcException {

if (arg1 == null) throw new IllegalArgumentException("url == null");

org.apache.dubbo.common.URL url = arg1;

String extName = ( url.getProtocol() == null ? "dubbo" : url.getProtocol() );

if(extName == null) throw new IllegalStateException("Failed to get extension (org.apache.dubbo.rpc.Protocol) name from url (" + url.toString() + ") use keys([protocol])");

org.apache.dubbo.rpc.Protocol extension = (org.apache.dubbo.rpc.Protocol)ExtensionLoader.getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName);

return extension.refer(arg0, arg1);

}

public java.util.List getServers()  {

throw new UnsupportedOperationException("The method public default java.util.List org.apache.dubbo.rpc.Protocol.getServers() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!");

}

}, dubbo version: 2.7.6, current host: 169.254.102.205 

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by javassist.ClassPool (file:/D:/study-software/IDEA2020.2.1/localideamaven/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)

WARNING: Please consider reporting this to the maintainers of javassist.ClassPool

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

org.apache.dubbo.common.extension.AdaptiveClassCodeGenerator 2022-01-05 05:13:46   [DUBBO] package org.apache.dubbo.rpc;

import org.apache.dubbo.common.extension.ExtensionLoader;

public class ProxyFactory$Adaptive implements org.apache.dubbo.rpc.ProxyFactory {

public java.lang.Object getProxy(org.apache.dubbo.rpc.Invoker arg0) throws org.apache.dubbo.rpc.RpcException {

if (arg0 == null) throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument == null");

if (arg0.getUrl() == null) throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument getUrl() == null");

org.apache.dubbo.common.URL url = arg0.getUrl();

String extName = url.getParameter("proxy", "javassist");

if(extName == null) throw new IllegalStateException("Failed to get extension (org.apache.dubbo.rpc.ProxyFactory) name from url (" + url.toString() + ") use keys([proxy])");

org.apache.dubbo.rpc.ProxyFactory extension = (org.apache.dubbo.rpc.ProxyFactory)ExtensionLoader.getExtensionLoader(org.apache.dubbo.rpc.ProxyFactory.class).getExtension(extName);

return extension.getProxy(arg0);

}

public java.lang.Object getProxy(org.apache.dubbo.rpc.Invoker arg0, boolean arg1) throws org.apache.dubbo.rpc.RpcException {

if (arg0 == null) throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument == null");

if (arg0.getUrl() == null) throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument getUrl() == null");

org.apache.dubbo.common.URL url = arg0.getUrl();

String extName = url.getParameter("proxy", "javassist");

if(extName == null) throw new IllegalStateException("Failed to get extension (org.apache.dubbo.rpc.ProxyFactory) name from url (" + url.toString() + ") use keys([proxy])");

org.apache.dubbo.rpc.ProxyFactory extension = (org.apache.dubbo.rpc.ProxyFactory)ExtensionLoader.getExtensionLoader(org.apache.dubbo.rpc.ProxyFactory.class).getExtension(extName);

return extension.getProxy(arg0, arg1);

}

public org.apache.dubbo.rpc.Invoker getInvoker(java.lang.Object arg0, java.lang.Class arg1, org.apache.dubbo.common.URL arg2) throws org.apache.dubbo.rpc.RpcException {

if (arg2 == null) throw new IllegalArgumentException("url == null");

org.apache.dubbo.common.URL url = arg2;

String extName = url.getParameter("proxy", "javassist");

if(extName == null) throw new IllegalStateException("Failed to get extension (org.apache.dubbo.rpc.ProxyFactory) name from url (" + url.toString() + ") use keys([proxy])");

org.apache.dubbo.rpc.ProxyFactory extension = (org.apache.dubbo.rpc.ProxyFactory)ExtensionLoader.getExtensionLoader(org.apache.dubbo.rpc.ProxyFactory.class).getExtension(extName);

return extension.getInvoker(arg0, arg1, arg2);

}

}, dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.common.extension.AdaptiveClassCodeGenerator 2022-01-05 05:13:46   [DUBBO] package org.apache.dubbo.remoting.zookeeper;

import org.apache.dubbo.common.extension.ExtensionLoader;

public class ZookeeperTransporter$Adaptive implements org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter {

public org.apache.dubbo.remoting.zookeeper.ZookeeperClient connect(org.apache.dubbo.common.URL arg0)  {

if (arg0 == null) throw new IllegalArgumentException("url == null");

org.apache.dubbo.common.URL url = arg0;

String extName = url.getParameter("client", url.getParameter("transporter", "curator"));

if(extName == null) throw new IllegalStateException("Failed to get extension (org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter) name from url (" + url.toString() + ") use keys([client, transporter])");

org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter extension = (org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter)ExtensionLoader.getExtensionLoader(org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter.class).getExtension(extName);

return extension.connect(arg0);

}

}, dubbo version: 2.7.6, current host: 169.254.102.205 

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy

at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperTransporter.createZookeeperClient(CuratorZookeeperTransporter.java:26)

at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperTransporter.connect(AbstractZookeeperTransporter.java:70)

at org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter$Adaptive.connect(ZookeeperTransporter$Adaptive.java)

at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.<init>(ZookeeperDynamicConfiguration.java:70)

at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:37)

at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.lambda$getDynamicConfiguration$0(AbstractDynamicConfigurationFactory.java:39)

at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)

at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:39)

at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.getDynamicConfiguration(DynamicConfiguration.java:223)

at org.apache.dubbo.config.bootstrap.DubboBootstrap.prepareEnvironment(DubboBootstrap.java:857)

at org.apache.dubbo.config.bootstrap.DubboBootstrap.startConfigCenter(DubboBootstrap.java:603)

at org.apache.dubbo.config.bootstrap.DubboBootstrap.useRegistryAsConfigCenterIfNecessary(DubboBootstrap.java:671)

at org.apache.dubbo.config.bootstrap.DubboBootstrap.initialize(DubboBootstrap.java:509)

at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:740)

at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:59)

at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:52)

at org.apache.dubbo.config.spring.context.OneTimeExecutionApplicationContextEventListener.onApplicationEvent(OneTimeExecutionApplicationContextEventListener.java:40)

at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)

at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)

at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)

at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403)

at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360)

at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553)

at org.apache.dubbo.container.spring.SpringContainer.start(SpringContainer.java:50)

at org.apache.dubbo.container.Main.main(Main.java:90)

at com.bjsxt.dubbo.Start.main(Start.java:10)

Caused by: java.lang.ClassNotFoundException: org.apache.curator.RetryPolicy

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

... 27 more

org.apache.dubbo.config.DubboShutdownHook 2022-01-05 05:13:46   [DUBBO] Run shutdown hook now., dubbo version: 2.7.6, current host: 169.254.102.205 

org.springframework.context.support.AbstractApplicationContext 2022-01-05 05:13:46  Closing org.springframework.context.support.ClassPathXmlApplicationContext@6b09bb57, started on Wed Jan 05 17:13:45 GMT-12:00 2022 

com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor 2022-01-05 05:13:46  class org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor was destroying! 

org.apache.dubbo.registry.support.AbstractRegistryFactory 2022-01-05 05:13:46   [DUBBO] Close all registries [], dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.config.bootstrap.DubboBootstrap 2022-01-05 05:13:46   [DUBBO] DubboBootstrap's all ServiceDiscoveries have been destroyed., dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.config.bootstrap.DubboBootstrap 2022-01-05 05:13:46   [DUBBO] DubboBootstrap's configs have been clear., dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.config.bootstrap.DubboBootstrap 2022-01-05 05:13:46   [DUBBO] DubboBootstrap is about to shutdown..., dubbo version: 2.7.6, current host: 169.254.102.205 

org.apache.dubbo.config.event.listener.LoggingEventListener 2022-01-05 05:13:46   [DUBBO] Dubbo Service has been destroyed., dubbo version: 2.7.6, current host: 169.254.102.205


JAVA 全系列/第十一阶段:分布式RPC调用和分布式文件存储/Dubbo 13885楼
JAVA 全系列/第八阶段:Linux入门到实战/Linux(旧) 13886楼
JAVA 全系列/第八阶段:Linux入门到实战/Linux(旧) 13887楼
WEB前端全系列/第二阶段:JavaScript编程模块/DOM模型 13888楼

image.png

mybatisdemo.rar

老师找不到在哪里错了
我的jdk是1.8

JAVA 全系列/第六阶段:项目管理与SSM框架/Mybatis 13889楼

flask_shop.zip   后端

no node_modules.zip 前端

这是我的结果




这是视频老师运行的结果


老师,我这里运行会报错,这是什么原因??


Python 全系列/第十阶段:Flask百战电商后台项目/Flask百战电商后台项目 13890楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

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