Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default value for dog is not working #14

Open
m-pawelczyk opened this issue Apr 8, 2020 · 0 comments
Open

default value for dog is not working #14

m-pawelczyk opened this issue Apr 8, 2020 · 0 comments

Comments

@m-pawelczyk
Copy link

application.propersties:
spring.profiles.active=EN

gives output:

:: Spring Boot ::        (v2.2.2.RELEASE)

2020-04-08 09:25:24.721  INFO 11199 --- [           main] g.s.sfgdi.SfgDiApplication               : Starting SfgDiApplication on localhost.localdomain with PID 11199 (/home/michal/git/sfg-di/target/classes started by michal in /home/michal/git/sfg-di)
2020-04-08 09:25:24.723  INFO 11199 --- [           main] g.s.sfgdi.SfgDiApplication               : The following profiles are active: EN
2020-04-08 09:25:25.133  WARN 11199 --- [           main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'petController' defined in file [/home/michal/git/sfg-di/target/classes/guru/springframework/sfgdi/controllers/PetController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'guru.springframework.sfgdi.services.PetService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2020-04-08 09:25:25.143  INFO 11199 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-04-08 09:25:25.241 ERROR 11199 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

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

Description:

Parameter 0 of constructor in guru.springframework.sfgdi.controllers.PetController required a bean of type 'guru.springframework.sfgdi.services.PetService' that could not be found.


Action:

Consider defining a bean of type 'guru.springframework.sfgdi.services.PetService' in your configuration.


Process finished with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant