Skip to content

Instantly share code, notes, and snippets.

View OlgaMaciaszek's full-sized avatar

Olga Maciaszek-Sharma OlgaMaciaszek

View GitHub Profile
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultValidator': Instantiation of supplied bean failed
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.obtainInstanceFromSupplier(AbstractAutowireCapableBeanFactory.java:1235) ~[card-service:6.0.0-SNAPSHOT]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.obtainFromSupplier(AbstractAutowireCapableBeanFactory.java:1209) ~[card-service:6.0.0-SNAPSHOT]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1156) ~[card-service:6.0.0-SNAPSHOT]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:566) ~[card-service:6.0.0-SNAPSHOT]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:526
package io.github.olgamaciaszek.cardservice.user;
import java.util.UUID;
import org.springframework.aot.hint.annotation.Reflective;
/**
* @author Olga Maciaszek-Sharma
*/
@Reflective
package io.github.olgamaciaszek.cardservice.user;
import java.util.UUID;
public class User {
public UUID uuid;
public Status status;
org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:181) ~[card-service:6.0.0-SNAPSHOT]
at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356) ~[na:na]
at java.lang.Iterable.forEach(Iterable.java:75) ~[card-service:na]
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155) ~[card-service:6.0.0-SNAPSHOT]
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123) ~[card-service:6.0.0-SNAPSHOT]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:943) ~[card-service:6.0.0-SNAPSHOT]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationConte
/**
* Get the bean definition for 'loadBalancerClientSpecification'
*/
public static BeanDefinition getLoadBalancerClientSpecificationBeanDefinition() {
Class<?> beanType = LoadBalancerClientSpecification.class;package org.springframework.cloud.loadbalancer.annotation;
import java.lang.Class;
import java.lang.String;
import org.springframework.beans.factory.aot.BeanInstanceSupplier;
import org.springframework.beans.factory.config.BeanDefinition;
@OlgaMaciaszek
OlgaMaciaszek / ContextBootstrapInitializer.java
Created September 28, 2021 14:23
ContextBootstrapInitializer - config server
package org.springframework.cloud.config.server.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.lang.reflect.Field;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.springframework.aot.beans.factory.BeanDefinitionRegistrar;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.cloud.bootstrap.encrypt.KeyProperties;
spring:
application:
name: HelloClient
server:
port: 7211
eureka:
password: password
client: