5.3 组件的创建-嵌套

 安装插件,输入 rcc  ,快速生成class组件

生成的class组件格式如下:

 列子:

  

 

 浏览器显示结果:

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.http.server.reactive.HttpHandler]: Factory method 'httpHandler' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mesGwAkSkAuthFilter' defined in class path resource [com/huawei/mes/framework/gateway/auth/MesGwAkSkConfiguration.class]: Unsatisfied dependency expressed through method 'mesGwAkSkAuthFilter' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mesGwAkSkCacher' defined in class path resource [com/huawei/mes/framework/gateway/auth/MesGwAkSkConfiguration.class]: Invocation of init method failed; nested exception is com.huawei.mes.framework.gateway.core.client.MesRestRequestException: Request Fault : {"code":"huawei.jalor.appcheck.00010003","httpCode":500,"entity":null,"message":"This data [ appId:com.huawei.supply.mes.mesplus.ldm and subAppID:mesgateway ] is not registered in common service.","faultUid":"","stackTrace":"","friendly":true} at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:641) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] ... 27 more Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mesGwAkSkAuthFilter' defined in class path resource [com/huawei/mes/framework/gateway/auth/MesGwAkSkConfiguration.class]: Unsatisfied dependency expressed through method 'mesGwAkSkAuthFilter' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mesGwAkSkCacher' defined in class path resource [com/huawei/mes/framework/gateway/auth/MesGwAkSkConfiguration.class]: Invocation of init method failed; nested exception is com.huawei.mes.framework.gateway.core.client.MesRestRequestException: Request Fault : {"code":"huawei.jalor.appcheck.00010003","httpCode":500,"entity":null,"message":"This data [ appId:com.huawei.supply.mes.mesplus.ldm and subAppID:mesgateway ] is not registered in common service.","faultUid":"","stackTrace":"","friendly":true} at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:794) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:532) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.DefaultListableBeanFactory$1.orderedStream(DefaultListableBeanFactory.java:481) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.web.server.adapter.WebHttpHandlerBuilder.applicationContext(WebHttpHandlerBuilder.java:172) ~[spring-web-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.boot.autoconfigure.web.reactive.HttpHandlerAutoConfiguration$AnnotationConfig.httpHandler(HttpHandlerAutoConfiguration.java:64) ~[spring-boot-autoconfigure-2.7.18.jar!/:2.7.18] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_402] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_402] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_402] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_402] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:641) ~[spring-beans-5.3.39-h2.jar!/:5.3.39-h2] ... 27 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mesGwAkSkCacher' defined in class path resource [com/huawei/mes/framework/gateway/auth/MesGwAkSkConfiguration.class]: Invocation of init method failed; nested exception is com.huawei.mes.framework.gateway.core.client.MesRestRequestException: Request Fault : {"code":"huawei.jalor.appcheck.00010003","httpCode":500,"entity":null,"message":"This data [ appId:com.huawei.supply.mes.mesplus.ldm and subAppID:mesgateway ] is not registered in common service.","faultUid":"","stackTrace":"","friendly":true} 启动网关服务时,报错如上
07-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值