Home > Back-end >  Eldest brother, help me to analyze a wave, Apollo can integrate the sso configuration files?
Eldest brother, help me to analyze a wave, Apollo can integrate the sso configuration files?

Time:03-06

1. We have a project, the original is the SSM, I upgrade become springboot, can start, do not have what problem;
2. Then let me take over all the configuration of this project, director of our own Apollo management, build my own alone to write a program, real-time dynamically found no problem, can read and modify the configuration file
3. But I give own project Apollo management, startup error, I baidu once those wrong, some people say that is probably the order of class loading problem, specific I also not too clear, after I give Apollo configuration file management, project start time error, at the beginning, single sign-on error there, I found that the single sign-on class with a lot of static variables and static blocks of code, could it be the influential? Below is the error information

 
Error starting ApplicationContext. To display the the conditions report re - run your application with 'debug' enabled.
The 2021-03-05 15:18:06. 972 ERROR 7408 - [the main] O.S.B oot. SpringApplication: Application run failed

Org. Springframework. Beans. Factory. UnsatisfiedDependencyException: Error creating bean with the name 'loginController: Unsatisfied dependency expressed through the field' wsService '; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'systemPlatformWSService defined in the file [E: \ withub \ project \ cq_mail_project net cn \ \ target \ classes \ \ withub/mail/business/mailList \ service \ systemPlatformWSService class] : Instantiation of bean failed; Nested exception is Java. Lang. ExceptionInInitializerError
The at org. Springframework. Beans. Factory. The annotation. AutowiredAnnotationBeanPostProcessor $AutowiredFieldElement. Inject (AutowiredAnnotationBeanPostProcessor. Java: 643) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Beans. Factory. The annotation. InjectionMetadata. Inject (InjectionMetadata. Java: 130) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Beans. Factory. The annotation. AutowiredAnnotationBeanPostProcessor. PostProcessProperties (AutowiredAnnotationBeanPostProcessor. Java: 399) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. PopulateBean (AbstractAutowireCapableBeanFactory. Java: 1420) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. DoCreateBean (AbstractAutowireCapableBeanFactory. Java: 593) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBean (AbstractAutowireCapableBeanFactory. Java: 516) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. Lambda $doGetBean $0 (AbstractBeanFactory. Java: 324) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Beans. Factory. Support. DefaultSingletonBeanRegistry. GetSingleton (DefaultSingletonBeanRegistry. Java: 226) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 322) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 202) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. PreInstantiateSingletons (DefaultListableBeanFactory. Java: 897) ~ [spring - beans - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Context. Support. AbstractApplicationContext. FinishBeanFactoryInitialization (AbstractApplicationContext. Java: 879) ~ [spring - the context - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 551) ~ [spring - the context - 5.2.8. The jar: 5.2.8. RELEASE]
The at org. Springframework. Boot. Web. Servlet. Context. ServletWebServerApplicationContext. Refresh (ServletWebServerApplicationContext. Java: 143) ~ [spring - the boot - 2.3.2. The jar: 2.3.2. RELEASE]
The at org. Springframework. Boot. SpringApplication. Refresh (SpringApplication. Java: 758) [spring - the boot - 2.3.2. The jar: 2.3.2. RELEASE]
The at org. Springframework. Boot. SpringApplication. Refresh (SpringApplication. Java: 750) [spring - the boot - 2.3.2. The jar: 2.3.2. RELEASE]
The at org. Springframework. Boot. SpringApplication. RefreshContext (SpringApplication. Java: 397) [spring - the boot - 2.3.2. The jar: 2.3.2. RELEASE]
The at org. Springframework. Boot. SpringApplication. Run (SpringApplication. Java: 315) [spring - the boot - 2.3.2. The jar: 2.3.2. RELEASE]
The at org. Springframework. Boot. SpringApplication. Run (SpringApplication. Java: 1237) [spring - the boot - 2.3.2. The jar: 2.3.2. RELEASE]
The at org. Springframework. Boot. SpringApplication. Run (SpringApplication. Java: 1226) [spring - the boot - 2.3.2. The jar: 2.3.2. RELEASE]
The at cn.net.withub.mail.CqMailProjectApplication.main (CqMailProjectApplication. Java: 18)/classes/: na
Under Caused by: org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'systemPlatformWSService defined in the file [E: \ withub \ project \ cq_mail_project net cn \ \ target \ classes \ \ withub/mail/business/mailList \ service \ systemPlatformWSService class] : Instantiation of bean failed; Nested exception is Java. Lang. ExceptionInInitializerError
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related