Framework/SPRING
-
Spring FrameworkFramework/SPRING 2020. 2. 6. 13:26
1. Overview Check how to improve the reusability of SW, the Relationship between design pattern and framework, and Spring framework Components. 1.1 Plain Old Java Object (POJO) Objects which are no need to inherit specific parent or environment but only JVM. So MyServlet which extends HttpServlet and runs on Web Container is not POJO. 1.2 Portable Service Abstraction (PSA) Separate complex low-l..
-
Spring MVC and Request Life CycleFramework/SPRING 2020. 2. 3. 13:29
1. Overview 1.1 Spring MVC Spring MVC is a web application framework that implements the Model View Controller pattern. It allows to implement controller classes equipped with mapping annotations to map HTTP requests into method invocations and bind request parameters and payloads to method arguments. @RestController // 1 class MyController { @GetMapping("/hello") // 2 String sayHelloTo(@Request..
-
Spring Bean ScopesFramework/SPRING 2019. 9. 29. 00:01
1. Overview The scope of a bean defines the life cycle and visibility of that bean in the contexts in which it is used. The latest version of Spring framework defines 6 types of scopes singleton prototype request session application WebSocket global session 2. Description 2.1 Singleton Scope The container creates a single instance of that bean, and all requests for that bean name will return the..
-
DispatcherServlet in SpringFramework/SPRING 2019. 9. 28. 23:46
1. Overview In the Front Controller design pattern, a single controller is responsible for directing incoming HTTP requests to all of an application's other controllers and handlers. Spring's DispatcherServlet implements this pattern and is responsible for correctly coordinating the HTTP requests to their right handlers. It is inherited from javax.servlet.http.HttpServlet, it is typically config..
-
Spring SecurityFramework/SPRING 2019. 9. 20. 08:05
1. Overview Spring Security is a separate module of the Spring framework that focuses on providing authentication and authorization methods in Java applications. It also takes care of most of the common security vulnerabilities such as CSRF attacks. To use Spring Security in web applications, you can get started with a simple annotation: @EnableWebSecurity. Spring Security is a powerful and high..
-
Transaction ManagementFramework/SPRING 2019. 9. 17. 20:36
1. Overview A database transaction is a sequence of actions that are treated as a single unit of work. These actions should either complete entirely or take no effect at all. Transaction management is an important part of RDBMS-oriented enterprise application to ensure data integrity and consistency. 2. Description 2.1 Core Concepts The following four key properties are the core concept of a tra..
-
Spring SessionFramework/SPRING 2019. 8. 27. 21:48
1. Overview Spring Session provides an API and implementations for managing a user’s session information. Spring Session has the simple goal of free up session management from the limitations of the HTTP session stored in the server. Spring Session to manage authentication information in a web app. While Spring Session can persist data using JDBC, Gemfire, or MongoDB, or in-memory Redis. 2. When..
-
Spring AOPFramework/SPRING 2019. 8. 23. 06:32
1. Overview AOP is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns. It does so by adding additional behavior to existing code without modification of the code itself. 1.1 Code Tangling, Scattering, and Cross-Cutting Concerns Problems Without AOP or Modularization are Code Tangling and Code Scattering. 1.1.1 cross-cutting concern A cros..