Skip to content

Volodymyr-Mykychak/jv-spring-intro

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%