dubbo之奇怪的问题---No such application config Please add dubbo application name=...

(八)Dubbo常见的错误总结 dubbo常见错误总结 阅读详情

今天调dubbo
我是客户端 于是写好了代码测试 就发现了这个错误
项目是springboot + dubbo xml配置
搜了好多地方没有一个正确的答案 github好像有人提问也没有人解答
至今我也不知道为什么 只知个大概 和我的解决办法 仅供参考
dubbo读取配置文件 首先会读xml
然后会去找dubbo.properties
这个错误的意思是 没有读取到配置文件中 dubbo:application name=这个属性
跟踪了源码 发现读取出来是null
个人怀疑是
1、 读取的时候出现了什么不知名的bug
2、springboot 和 dubbo的加载顺序出现了变故
之后有时间会继续跟进

废话不多说 解决办法是
把这个配置放在dubbo默认会读取的dubbo.proerpties中
这个文件放在resource下
就像这样

dubbo.application.name=ecourse-consumer
dubbo.registry.address=zookeeper://zookeeper://hqjlzookeeper:2181
dubbo.registry.check=false
dubbo.protocol.name=dubbo

这时dubbo从xml读不到的配置会去dubbo.properties找
只是问题是需要共存两个配置文件 xml的refrence还需要留下

后续找到问题会继续更新…

----------------------------------------------------分割线----------------------------------------------------------------------------
2020-05-25更新来了
和同事闲聊,发现同事之前也遇到了这个问题,遇到问题的同学可以试一下,就是 springboot和dubbo版本不兼容,导致classloader加载遇到了什么未知的问题,但是But 我试了一下从1.5.8升级到了2.2.5 还改了 好多不兼容的东西发现。。并不好用,哈哈哈,但是同事说解决了,过后哪天加班有时间我会再继续试一下的~~~~~~

------------------------------------------------------------------分割线------------------------------------------------------------
好的 我又试了一下下面老哥的回复 写两遍<dubbo:application 也会好。。

机器视觉最全面试题总结 空洞卷积(Atrous Convolution)也叫做膨胀卷积、扩张卷积,最初的提出是为了解决图像分割在用下采样(池化、卷积)增加感受野时带来的特征图缩小,后再上采样回去时造成的精度上的损失。空洞卷积通过引入了一个扩张率的超参数,该参数定义了卷积核处理数据时各值的间距。可以在增加感受野的同时保持特征图的尺寸不变,从而代替下采样和上采样a. 是普通的卷积过程(dilation rate = 1),卷积后的感受野为3b. 是dilation rate = 2的空洞卷积,卷积后的感受野为5。 阅读详情

相关推荐

达梦DM8整合Seata AT模式实战:手把手教你搞定分布式事务(含源码修改避坑)

本文详细介绍了达梦DM8数据库与Seata AT模式的深度整合实战,包括环境准备、架构设计、源码适配及分布式事务落地。通过独创性源码改造,解决了Seata官方对达梦数据库AT模式支持的限制,为国产数据库在微服务架构中的应用提供了可靠的事务保障。

weixin_30764771的博客 332

No such application config

今天在进行项目开发,同事启动项目就没问题。 我这里启动就有问题。No such application config! Please add <dubbo:application name="..." /> to your spring config.提示没有 dubbo 配置,但是项目文件里是由dubbo 配置的。dubbo 启动的时候没有扫描到,但是不知道为什么? # D...

浩轩的博客 7419

Wireshark 4.6 TCP 流图解析:3种拥塞控制算法可视化对比

本文深入解析Wireshark 4.6的TCP流图功能,通过可视化对比Reno、Cubic和BBR三种主流拥塞控制算法的性能特征。文章提供详细的实验环境搭建方法、流图分析工具使用技巧,以及算法调优建议,帮助网络工程师优化TCP性能。

weixin_29291573的博客 446

spring+dubbo 2.6.8 idea不识别xml问题——No such application config Please add dubbo application

目录 问题描述 环境描述 解决方案 问题描述 尝试运行dubbo+spring时报错,错误代码为: Exception in thread “main” java.lang.IllegalStateException: No such application config! Please add <dubbo:application name="…" /> to your spring config. 是说找不到我的dubbo的xml配置文件。但是事实上我配置了dubbo applicat

m0_67402236的博客 985

从零到英雄:WSL2与Ubuntu22.04的终极性能调优指南

本文详细介绍了如何在Windows系统中通过WSL2与Ubuntu22.04进行性能调优,涵盖内核定制、GPU加速、网络优化等关键技巧,帮助开发者打造媲美原生Linux的高性能开发环境,特别适合AI训练和大数据处理等资源密集型任务。

weixin_29218509的博客 523

【73页PPT】美的简单高效的管理逻辑(附下载方式)

其科技领先战略依托四级研发体系(中央研究院、事业部、前沿技术、产品开发)与 “三个一代” 模式(开发一代、储备一代、研究一代),构建全球研发布局(“2+4+N” 体系,含顺德、上海双总部,美、德、意、日四大研发中心及分布式创新节点),研发投入强度持续提升。MBS(美的精益运营体系)以 “12345” 为方法论:始于客户需求,借鉴顶级企业实践,以战略部署、人才育成、日常管理为核心,追求质量、交付、成本、创新四大目标,通过精益五步法(定价值、析流、促流动、拉系统、尽善美)实现全链条优化。

2501_92808811的博客 1102

dubbo基本使用

版本选择:3.0.2.1版本 Dubbo3.0相比2.x,资源利用率显著提升,吞吐量有所提升。 dubbo是一个微服务框架,架构演变衍生而来。 单一应用架构 --> 垂直应用架构 --> 分布式服务架构 --> 流动计算架构 单一应用架构:网站访问流量小,只需单一应用将所有功能部署在一起,简单方便。数据访问框架(ORM)是关键。 垂直应用架构:访问量增大,单一应用靠增加机器带来的速度提升很小,需要对应用进行拆分以提升效率。加速前端页面开发的Web框架(MVC)是关键。 分布式服

Lucifer ZHAO 906

LwIP在国产MCU的落地实践:从协议栈优化到网络稳定性实战

本文详细介绍了LwIP协议栈在国产GD32F407 MCU上的移植与优化实践,涵盖硬件平台选择、驱动适配、协议栈调优和网络稳定性提升策略。通过内存管理优化、实时操作系统集成和性能测试,为工业物联网应用提供高可靠性网络通信解决方案,显著提升数据传输效率和系统稳定性。

m2n3b4v5c6的博客 268

springboot学习

微服务阶段 javase:OOP 面向对象 mysql:持久化 html+css+js+jquery+框架 javaweb:原始 ssm:框架 前面是打war包,tomcat运行 spring再简化:springBoot,打jar包,内嵌tomcat,微服务 springBoot简介 什么是spring Spring是一个开源框架,2003 年兴起的一个轻量级的Java 开发框架,作者:Rod Johnson 。 Spring是为了解决企业级应用开发的复杂性而创建的,简化开发。 spring是如何简化j

qq_45598422的博客 1347

AUTOSAR从入门到精通-诊断事件管理模块(DEM)(四)

在 Autosar 中,诊断事件是指在车辆电子系统中发生的特定事件,可以用于诊断和故障排除。DEM模块通过EventId和相关的EventName来表示每个诊断事件。诊断事件的状态代表了监控器的结果,DEM模块通过RTE或其他BSW模块从SW-C接收监控器的结果。DEM模块使用EventId来管理系统中每个诊断事件的状态,并对各个测试结果执行所需的操作,例如存储冻结帧/拓展帧。所有监控器和BSW模块使用EventId作为符号化的EventName来管理诊断事件。

getusushu的博客 1508

【SAP ME 3】JAVA 调用SAP PO WebService

Java调用SAP PO/PI WebService接口

探索 Java 编程的技巧、最佳实践和解决方案。本博客提供针对 Java 开发者的实用指南,涵盖从基础到高级话题,旨在提升编程效率和技能。 847

dubbo之奇怪的问题---No such application config Please add dubbo application name=

今天调dubbo 我是客户端 于是写好了代码测试 就发现了这个错误 项目是springboot + dubbo xml配置 搜了好多地方没有一个正确的答案 github好像有人提问也没有人解答 至今我也不知道为什么 只知个大概 和我的解决办法 仅供参考 dubbo读取配置文件 首先会读xml 然后会去找dubbo.properties 这个错误的意思是 没有读取到配置文件中 dubbo:application name=这个属性 跟踪了源码 发现读取出来是null 个人怀疑是 1、 读取的时候出现了什么不知

m0_67393828的博客 621

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

dubbo

一 为什么需要 dubbo 很多时候,其实我们使用这个技术的时候,可能都是因为项目需要,所以,我们就用了,但是,至于为什么我们需要用到这个技术,可能自身并不是很了解的,但是,其实了解技术的来由及背景知识,对于理解一项技术还是有帮助的,那么,dubbo是怎么被提上日程的呢? 在互联网的发展过程中,在以前,我们只需要一个服务器,将程序全部打包好就可以,但是,随着流量的增大,常规的垂直应用架构已无法应对...

Tommy_____的博客 648

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

spring+dubbo 2.6.8 idea不识别xml问题——No such application config! Please add dubbo application name=

目录 问题描述 环境描述 解决方案 问题描述 尝试运行dubbo+spring时报错,错误代码为: Exception in thread "main" java.lang.IllegalStateException: No such application config! Please add <dubbo:application name="..." /> to yo...

兰兰的博客 3184

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

springBoot整合dubbo 两种方式

springBoot整合dubbo有两种方式 ,一种是引入io.dubbo.springboot,一种是引入com.alibaba.spring.boot 一、io.dubbo.springboot pom配置 ** io.dubbo.springboot spring-boot-starter-dubbo 1.0.0 ** 生产者application.properties #dubbo应用名称 spring.dubbo.application.name=service-provider #注册中心的协议

m0_67391401的博客 5563

【Springboot+Dubbo】常见报错解决

springboot集成dubbo常见错误

H'Senseiの工坊 2430

Dubbo配置注册中心设置application的name使用驼峰命名法可能存在的隐藏启动异常问题

Dubbo出现异常问题Bean named 'xxxService' is expected to be of type 'com.xxx.xxx.xxx.service.xxxService' but was actually of type 'org.apache.dubbo.config.ApplicationConfig'

朱季谦 1449

引入spring-cloud-starter-dubbo后启动项目失败:No application config found or it‘s not a valid config!

引入spring-cloud-starter-dubbo后启动项目失败:java.lang.IllegalStateException: No application config。检查源码是说dubbo.application.name这个配置没有,但是我配置了也是提示这个异常,再检查发现是jar版本问题。spring-cloud-alibaba-dependencies由2.1.0.RELEASE修改为2.1.1.RELEASE即可解决

新林的博客 2万+

java.lang.IllegalStateException: No such application config! Please add dubbo:application name

运行Dubbo+springBoot项目启动报错:java.lang.IllegalStateException: No such application config! Please add <dubbo:application name="…" /> to your spring config。 字面意思就是没找到dubbo.application.name这个属性,本以为是ap...

Dawn_Bells的博客 8004

soul网关学习之bootstrap启动报错-问题初步解决

上一篇记录了bootstrap启动时系统报如下异常: No such application config! Please add <dubbo:application name="..." /> to your spring config 试了四种方式,还是没能解决这个报错问题,今天突然想到会不会跟zookeeper版本有关,之前测试alibaba dubbo用例的时候,就出现过zookeeper版本不对,导致alibaba dubbo用例的dubbo服务未能注册成功,后面把用例里面的zoo

xu123pt的博客 1059

springboot+dubbo主要的要点之 No application config found or it's not a valid config!

idea2019 maven 3.3.9 dubbo2.7.5 springboot集成dubbo一定要引入dubbo-spring-boot-starter 依赖 <dependency> <groupId>org.apache.dubbo</groupId> <artifactId>dubbo-spring-boot-starter</artifactId> <version>2.7.5</versio

dandanwang521的博客 1万+

Dubbo详解(一):Dubbo介绍和SpringBoot整合Dubbo+ZooKeeper

一、Dubbo介绍 1、Dubbo是什么 Dubbo是阿里巴巴开源的基于Java的高性能RPC(一种远程调用)分布式服务框架(SOA),致力于提供高性能和透明化的RPC远程服务调用方案,以及SOA服务治理方案 2、Dubbo架构 节点角色说明 节点 角色说明 Provider 暴露服务的服务提供方 Consumer 调用远程服务的服务消费方 Registry 服务注册与发...

hxt的博客 4138

No application config found or it‘s not a valid config! Please add <dubbo:application name=“...“ />

首先我的项目结构是这样的: 作为一个简单的Demo项目,启动时报错:No application config found or it’s not a valid config! Please add 可是配置添加了 通过搜索引擎尝试:原来项目的dubbo版本是3.0.0,修改为以下 然后报错: 添加配置:spring.main.allow-bean-definition-overriding=true,启动类上添加注解@EnableDubbo

我是Java程序员廖志伟,感谢朋友们的支持! 1356

Spring boot dubbo多注册中心配置

最近旁边同事想要把基于xml配置的非Spring boot dubbo项目转换成spring boot dubbo项目,但是,在转化的过程中,一直发生No such application config! Please add <dubbo:application name="..." /> to your spring config如上错误,经过自己的多次整理和重试,总结了如下的处...

臣本布衣,躬耕于南阳 3286
上一篇: Java工具类---------获取系统环境变量以及配置文件的值
下一篇: 基于DFA算法实现文章敏感词过滤
评论 20
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值