Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1 KB

README.md

File metadata and controls

31 lines (21 loc) · 1 KB

Spring Framework intro

  • Add all needed dependencies. Adding Spring dependencies use the same version for each of them. For this purpose you can use property spring.version. See example in <artifactId>spring-test</artifactId> dependency.

  • Implement UserService and UserDao

      public interface UserService {
          User add(User user);
      
          List<User> getAll();
      }
  • User should have age, name fields and overridden equals() and hashcode() methods

  • In the Main class configure ApplicationContext and show how you are saving User into DB and reading him back

  • Configure DataSource

  • Understand the main concepts of Spring framework:

    • ApplicationContext
    • Bean
    • Bean Autowiring
    • Difference between @Bean and @Autowired and @Qualifier
    • What does each annotation used in videos mean?

You can check yourself using this checklist