Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. :: Spring Boot :: (v2.2.4.RELEASE)
  2. 2020-02-27 20:39:28.431 INFO 1 --- [ main] r.s.k.c.ChildServiceApplication : The following profiles are active: prod
  3. 2020-02-27 20:39:29.294 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
  4. 2020-02-27 20:39:29.569 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 261ms. Found 17 JPA repository interfaces.
  5. 2020-02-27 20:39:29.933 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'dataSource' defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Cannot register bean definition [Root bean: class [org.springframework.aop.scope.ScopedProxyFactoryBean]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]] for bean 'dataSource': There is already [Root bean: class [null]; scope=refresh; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari; factoryMethodName=dataSource; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]] bound.
  6. 2020-02-27 20:39:29.947 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener :
  7. Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  8. 2020-02-27 20:39:29.950 ERROR 1 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
  9. ***************************
  10. APPLICATION FAILED TO START
  11. ***************************
  12. Description:
  13. The bean 'dataSource', defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class] and overriding is disabled.
  14. Action:
  15. Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement