Spring Framework: Difference between revisions

From My Limbic Wiki
(Page créée avec « More about Spring https://www.baeldung.com/spring-tutorial * Libre pour définir la structure de l'application * Bien pour le dev et les test * Conteneur léger = les clas... »)
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
More about Spring https://www.baeldung.com/spring-tutorial
More about Spring https://www.baeldung.com/spring-tutorial
* Libre pour définir la structure de l'application
= Why Use Spring =
* Bien pour le dev et les test
* Free to define application Architecture
* Conteneur léger = les classes n'ont pas besoin d'interfaces pour êtres prises en charge
* Helpfull with dev and test
* Utiliser Spring pour toutes ces raisons
* LightWeight container = class don't need interfaced to be loaded
** Web Applications
= Provide =
** RESTful services
* Web Applications
** Secure your web applications
* RESTful services
** Communicating with databases
* Secure your web applications
** Handling long running jobs
* Communicating with databases
** Handle external resources or systems you have to work with.
* Handling long running jobs
** Testing purposes
* Handle external resources or systems you have to work with.
** Standalone java projects
* Testing purposes
** Convert your application into an executable
* Standalone java projects
** Integrate Social Media into your applications
* Convert your application into an executable
** Quick prototype
* Integrate Social Media into your applications
** To get Started
* Quick prototype
===Spring===
* To get Started
 
=Technical=
* Loose Coupling - {'''@Component''' class > private param interface '''@Autowired'''} + {'''Interface''' > public param} + {Child class '''Implement'''}
* Loose Coupling - {'''@Component''' class > private param interface '''@Autowired'''} + {'''Interface''' > public param} + {Child class '''Implement'''}
* Dependency Injection = instanciate Beans and wire dependancies = '''Spring do it automatically because of the annotation @Autowired'''
* Dependency Injection = instanciate Beans and wire dependancies = '''Spring do it automatically because of the annotation @Autowired'''
* Better Unit Test
* Better Unit Test
* Spring Modules ('''makes the code easy to write''')
= Spring Modules =
** JDBC
Makes the code easy to write
** MVC
* JDBC
** AOP
* MVC
** ORM
* AOP
** JMS
* ORM
** Test
* JMS
* Very good at integrating other Frameworks
* Test
** Hibernate (ORM)
 
** iBatis (Object Mapping)
= Very good at integrating other Frameworks =
** Junit & Mockit (Test)
* [[Hibernate]] (ORM)
====More====
* iBatis (Object Mapping)
* Junit & Mockit (Test)
 
=More=
* Let programmer focus on business logic
* Let programmer focus on business logic
* key feature is dependency management
* key feature is dependency management

Latest revision as of 22:13, 20 September 2019

More about Spring https://www.baeldung.com/spring-tutorial

Why Use Spring

  • Free to define application Architecture
  • Helpfull with dev and test
  • LightWeight container = class don't need interfaced to be loaded

Provide

  • Web Applications
  • RESTful services
  • Secure your web applications
  • Communicating with databases
  • Handling long running jobs
  • Handle external resources or systems you have to work with.
  • Testing purposes
  • Standalone java projects
  • Convert your application into an executable
  • Integrate Social Media into your applications
  • Quick prototype
  • To get Started

Technical

  • Loose Coupling - {@Component class > private param interface @Autowired} + {Interface > public param} + {Child class Implement}
  • Dependency Injection = instanciate Beans and wire dependancies = Spring do it automatically because of the annotation @Autowired
  • Better Unit Test

Spring Modules

Makes the code easy to write

  • JDBC
  • MVC
  • AOP
  • ORM
  • JMS
  • Test

Very good at integrating other Frameworks

  • Hibernate (ORM)
  • iBatis (Object Mapping)
  • Junit & Mockit (Test)

More

  • Let programmer focus on business logic
  • key feature is dependency management
  • enables testability
  • inversion of control
  • application context (bean factory)