Code Monkey home page Code Monkey logo

sfg-di's Introduction

Dependency Injection Examples

This repository is for an example application built in my Spring Framework 5 - Beginner to Guru online course

As you work through the course, please feel free to fork this repository to your out GitHub repo. Most links contain links to source code changes. If you encounter a problem you can compare your code to the lesson code. See this link for help with compares

All Spring Framework Guru Courses

Spring Framework 5

SQL

DevOps

Web Development with Spring Framework

  • Angular 4 Java Developers - Learn how to use Angular with Spring Boot. Two flaming hot technologies! This is the only course on Udemy where you can learn how to use JHipster to rapidly build your next application! Also, be sure to checkout the Slack community for this course!
  • Mastering Thymeleaf with Spring Boot - Once you learn Thymeleaf, you'll never want to go back to using JSPs for web development!

Spring Framework 4

  • Spring Core - Learn the core of Spring Framework 4!
  • Spring Core Advanced - Go beyond the basics! Learn about Aspect Oriented Programming, Spring Security, using Spring Events, JMS and more!

Connect with Spring Framework Guru

  • Spring Framework Guru Blog
  • Subscribe to Spring Framework Guru on YouTube
  • Like Spring Framework Guru on Facebook
  • Follow Spring Framework Guru on Twitter
  • Connect with John Thompson on LinkedIn

sfg-di's People

Contributors

springframeworkguru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sfg-di's Issues

default value for dog is not working

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.