dubbo启动报错 No such extension com.alibaba.dubbo.container.Container by name --spring.output.ansi.enab

偏执的太偏执、 2022-05-10 23:14 1829阅读 0赞

dubbo中的 springboot项目启动报错内容如下:

  1. java.lang.IllegalStateException: No such extension com.alibaba.dubbo.container.Container by name --spring.output.ansi.enabled=always at com.alibaba.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:494) at com.alibaba.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:501) at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:319) at com.alibaba.dubbo.container.Main.main(Main.java:56) at com.snailf.config.PayApplication.main(PayApplication.java:12) 2018-09-18 14:21:07.036 [main] ERROR com.alibaba.dubbo.container.Main - [DUBBO] No such extension com.alibaba.dubbo.container.Container by name --spring.output.ansi.enabled=always, dubbo version: 2.5.3, current host: 18.222.1.230 java.lang.IllegalStateException: No such extension com.alibaba.dubbo.container.Container by name --spring.output.ansi.enabled=always at com.alibaba.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:494) at com.alibaba.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:501) at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:319) at com.alibaba.dubbo.container.Main.main(Main.java:56) at com.snailf.config.PayApplication.main(PayApplication.java:12)

解决办法:更改启动方式,sts编辑器可能对springboot项目注册到dubbo有影响,改为Java Application方式启动即可

在这里插入图片描述
上图启动方式会报错下图启动方式正确

在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,1829人围观)

还没有评论,来说两句吧...

相关阅读