Spring Framework
From My Limbic Wiki
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 classes n'ont pas besoin d'interfaces pour êtres prises en charge
- Utiliser Spring pour toutes ces raisons
- 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
Spring
- 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)