Skip to content

Instantly share code, notes, and snippets.

@mkdika
Last active October 16, 2017 03:41
Show Gist options
  • Save mkdika/e064817b99d0edb8163308a9c17c5fb9 to your computer and use it in GitHub Desktop.
Save mkdika/e064817b99d0edb8163308a9c17c5fb9 to your computer and use it in GitHub Desktop.
Spring Framework 5.0 Learning Note

Learning Spring Framework 5.0

Spring Annotation

  • @Configuration, to define class as Spring Configuration Class.
  • @Autowired, auto instance the given class.
Defining Spring Bean Annotation
  • @Component, the most generic way to defining a Spring Bean.
  • @Repository, used in Data Access Object (DAO) components.
  • @Service, used in business service components.
  • @Controller, used in presentation components.

Spring Bean Scope

  • singleton (default)
  • prototype
  • request
  • session
  • global-session
References:

Other References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment