Получение следующих исключений при запуске приложения.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistenceExceptionTranslationPostProcessor' defined in class path resource [org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor]: Factory method 'persistenceExceptionTranslationPostProcessor' threw exception; nested exception is java.lang.StackOverflowError
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:228) ~[spring-context-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:721) ~[spring-context-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:534) ~[spring-context-5.1.10.RELEASE.jar:5.1.10.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744) [spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391) [spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) [spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204) [spring-boot-2.1.9.RELEASE.jar:2.1.9.RELEASE]
Причина: org.springframework.beans.BeanInstantiationException: Не удалось создать экземпляр [org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor]: метод фабрики 'исключение persistenceExceptionTranslationPostProcessor;вложенным исключением является java.lang.StackOverflowError в org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate (SimpleInstantiationStrategy.java:185) ~ [spring-beans-5.1.10.RELEASE.jar: 5.1.10.RELE]org.springframework.beans.factory.support.ConstructorResolver.instantiate (ConstructorResolver.java:622) ~ [spring-beans-5.1.10.RELEASE.jar: 5.1.10.RELEASE] ... 19 опущенных общих фреймов Причина:java.lang.StackOverflowError: null at org.springframework.util.ConcurrentReferenceHashMap.getReference (ConcurrentReferenceHashMap.java:266) ~ [spring-core-5.1.10.RELEASE.jar: 5.1.10.RELEASE] в org.springme.ConcurrentReferenceHashMap.getEntryIfAvailable (ConcurrentReferenceHashMap.java:253) ~ [spring-core-5.1.10.RELEASE.jar: 5.1.10.RELEASE] в org.springframework.util.ConcurrentReferenceHashMap.get [ConcurrentRejspring-core-5.1.10.RELEASE.jar: 5.1.10.RELEASE] на org.springframework.boot.context.properties.source.SpringConfigurationPropertySources.adapt (SpringConfigurationPropertySources.java:58) ~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9.RELEASE] в org.springframework.boot.context.properties.source.SpringConfigurationPropertySources $ SourcesIterator.fetchNext (Springing.java: 116) ~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9.RELEASE] в org.springframework.boot.context.properties.source.SpringConfigurationPropertySources $ SourcesIterator.hasNext (SpringConfigurationPropertySources.java:86)~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9.RELEASE] в org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource.findConfigurationProperty (ConfigurationPropertySourcesPropertySource.java:64) ~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9.RELEASE] at org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource.findConfigurationProperty (ConfigurationPropertySourcesPropertySource.java:53) ~ [spring-boot-2.1.9.RELEASE.jar2.1.9.RELEASE] на org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource.getProperty (ConfigurationPropertySourcesPropertySource.java:42) ~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9. : 61) ~ [spring-core-5.1.10.RELEASE.jar: 5.1.10.RELEASE] в org.springframework.boot.context.properties.source.SpringConfigurationPropertySource.find (SpringConfigurationPropertySource.java:111) ~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9.RELEASE] в org.springframework.boot.context.properties.source.SpringConfigurationPropertySource.find (SpringConfigurationPropertySource.java:100) ~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9.RELEASE] в org.springframework.boot.context.properties.source.SpringConfigurationPropertySource.getConfigurationProperty (SpringConfigurationPropertySource.java:84) ~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9. RELEASE] at org.springframework.boot.context.properties.source.SpringIterableConfigurationPropertySource.getConfigurationProp()) ~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9.RELEASE] в org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource.findConfigurationProperty (ConfigurationPropertySourcesPropertySource.java:53) ~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9.RELEASE]в org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource.getProperty (ConfigurationPropertySourcesPropertySource.java:42) ~ [spring-boot-2.1.9.RELEASE.jar: 2.1.9.RELEASE] в org.springframework.coreenv.CompositePropertySource.getProperty (CompositePropertySource.java:61) ~ [spring-core-5.1.10.RELEASE.jar: 5.1.10.RELEASE]