10-Spring Overview Flashcards
1
Q
Is Spring a full J2EE container?
A
No, it is simply a container for the components (beans) in your application.
2
Q
What are the key principles of Spring framework?
A
- Don’t repeat yourself e.g. Spring’s template classes
- Separation of Concerns e.g. security layer
- Convention over Configuration: attempt to decrease the number of decisions that a developer using the framework –> work even without writing any configuration files
- Testability
3
Q
2 benefits of Separation of Concerns?
A
- Tight Cohesion: Cohesion is the technical name for well focused code doing a single task.
- Loose Coupling: Change in one component is isolated from the rest. Changes to not propagate throughout the system.
4
Q
What is a POJO?
A
“Plain Java” means you write code with no dependencies on third-party frameworks or infrastructure, and minimal dependencies overall