自定义环境启动报错

Blade 未结 1 685
liuyang
liuyang 剑童 2022-01-08 18:59

一、该问题的重现步骤是什么?

1. 自定义环境  --spring.profiles.active=suit

2. 启动报错

3.已经配置了blade-suit.yaml以及application-suit.yaml


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

2.5.2 release


四、请提供详细的错误堆栈信息,这很重要。

2022-01-08 18:42:20.641 [restartedMain] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration$$EnhancerBySpringCGLIB$$7c59a4a8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-01-08 18:42:20.653 [restartedMain] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$c3a3f1fa] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-01-08 18:42:20.667 [restartedMain] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration' of type [org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration$$EnhancerBySpringCGLIB$$9f35fd1a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-01-08 18:42:20.678 [restartedMain] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration' of type [org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration$$EnhancerBySpringCGLIB$$d81da5e7] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-01-08 18:42:20.686 [restartedMain] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'mbeanServer' of type [com.sun.jmx.mbeanserver.JmxMBeanServer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-01-08 18:42:20.732 [restartedMain] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-01-08 18:42:21.183 [restartedMain] WARN  io.undertow.websockets.jsr - UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2022-01-08 18:42:21.211 [restartedMain] INFO  io.undertow.servlet - Initializing Spring embedded WebApplicationContext
2022-01-08 18:42:21.211 [restartedMain] INFO  org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 5762 ms
2022-01-08 18:42:21.412 [restartedMain] WARN  com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
2022-01-08 18:42:21.412 [restartedMain] INFO  com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2022-01-08 18:42:21.419 [restartedMain] INFO  com.netflix.config.DynamicPropertyFactory - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@72e1e8e0
2022-01-08 18:42:21.939 [restartedMain] INFO  c.a.d.s.b.a.DruidDataSourceAutoConfigure - Init DruidDataSource
2022-01-08 18:42:24.009 [restartedMain] INFO  com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited
2022-01-08 18:42:24.149 [restartedMain] INFO  o.f.s.b.ProcessEngineAutoConfiguration$$EnhancerBySpringCGLIB$$5f26741d - No deployment resources were found for autodeployment
2022-01-08 18:42:24.188 [restartedMain] INFO  o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor'
2022-01-08 18:42:26.533 [restartedMain] INFO  org.flowable.engine.impl.ProcessEngineImpl - ProcessEngine default created
2022-01-08 18:42:26.634 [restartedMain] INFO  org.flowable.engine.impl.cmd.ValidateV5EntitiesCmd - Total of v5 deployments found: 0
2022-01-08 18:42:28.019 [restartedMain] INFO  o.s.b.a.endpoint.web.ServletEndpointRegistrar - Registered '/actuator/jolokia' to jolokia-actuator-endpoint
2022-01-08 18:42:28.019 [restartedMain] INFO  o.s.b.a.endpoint.web.ServletEndpointRegistrar - Registered '/actuator/hystrix.stream' to hystrix.stream-actuator-endpoint
2022-01-08 18:42:28.993 [restartedMain] WARN  c.b.mybatisplus.core.metadata.TableInfoHelper - Can not find table primary key in Class: "org.apache.poi.ss.formula.functions.T".
2022-01-08 18:42:29.888 [restartedMain] WARN  c.b.mybatisplus.core.injector.AbstractMethod - [com.service.function.managerView.mapper.ManagerViewMapper.selectPage] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectPage]
2022-01-08 18:42:30.800 [restartedMain] WARN  c.b.mybatisplus.core.injector.AbstractMethod - [com.service.function.smog.mapper.SmogReactionMapper.selectPage] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectPage]
2022-01-08 18:42:30.877 [restartedMain] WARN  c.b.mybatisplus.core.metadata.TableInfoHelper - Can not find table primary key in Class: "com.service.api.entity.common.ResponseBean".
2022-01-08 18:42:30.894 [restartedMain] WARN  c.b.mybatisplus.core.metadata.TableInfoHelper - Can not find table primary key in Class: "com.service.api.vo.basicInformation.BasicInformationVO".
2022-01-08 18:42:30.960 [restartedMain] WARN  c.b.mybatisplus.core.metadata.TableInfoHelper - Can not find table primary key in Class: "com.service.api.vo.statistics.SatisfactionTotalVo".
2022-01-08 18:42:31.077 [restartedMain] WARN  c.b.mybatisplus.core.metadata.TableInfoHelper - Can not find table primary key in Class: "com.service.api.vo.warnMonitor.WarnMonitorVO".
2022-01-08 18:42:32.889 [restartedMain] INFO  o.s.b.d.autoconfigure.OptionalLiveReloadServer - LiveReload server is running on port 23333
2022-01-08 18:42:33.085 [restartedMain] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'accuseController': Unsatisfied dependency expressed through field 'feign'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.service.function.accuse.feign.AccuseFeign': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'feignClient' defined in class path resource [org/springframework/cloud/openfeign/ribbon/OkHttpFeignLoadBalancedConfiguration.class]: Unsatisfied dependency expressed through method 'feignClient' parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'httpClient' defined in class path resource [org/springblade/core/cloud/http/RestTemplateConfiguration.class]: Unsatisfied dependency expressed through method 'httpClient' parameter 3; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springblade.core.cloud.http.HttpLoggingInterceptor' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2022-01-08 18:42:33.253 [restartedMain] INFO  o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Shutting down ExecutorService 'applicationTaskExecutor'
2022-01-08 18:42:33.253 [restartedMain] INFO  com.alibaba.druid.pool.DruidDataSource - {dataSource-1} closing ...
2022-01-08 18:42:33.257 [restartedMain] INFO  com.alibaba.druid.pool.DruidDataSource - {dataSource-1} closed
2022-01-08 18:42:33.270 [restartedMain] INFO  o.s.b.a.l.ConditionEvaluationReportLoggingListener - 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-01-08 18:42:33.616 [restartedMain] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter - 

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 3 of method httpClient in org.springblade.core.cloud.http.RestTemplateConfiguration required a bean of type 'org.springblade.core.cloud.http.HttpLoggingInterceptor' that could not be found.

The injection point has the following annotations:
	- @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'org.springblade.core.cloud.http.HttpLoggingInterceptor' in your configuration.


五、若有更多详细信息,请在下面提供。

1条回答
  • logback-suit.xml文件也要新建一份

    }1IQOM466I0W3NPW`5GAUIO.png

    作者追问:2022-01-11 16:31

    没有这个日志文件会专门报错的

    image.png

    我这里是因为这个RestTemplateConfiguration类好像里面限定死了只有四种profile,具体是不是我就看不懂了,使用ontest环境就可以

    image.png

    RestTemplateConfiguration里边代码

    image.png


    0 讨论(0)
提交回复