-
RESTFul API
RESTFul APIWhat is RESTFul API (Application Programming Interface)?You can think of an API as a mediator between the users or clients and the resources or web services they want to get.What is REST?REST is an architectural style that defines a set...…
-
REST Controller in Spring
REST Controller in Spring@RestController VS @Controller@RestController is a convenience annotation that combines @Controller and @ResponseBody. It is used for building RESTful web services that return data in response to HTTP requests in JSON/XML....…
-
Srping Security and Authentication
Spring SecuritySpring Security introduction MoreSpring Security is a framework to protect our endpoints.talk about details how authentication and authorization works, login/ not login, permission/role, etc. (Interview question) user want to login...…
-
Srping AOP
AOP - Aspect Oriented Programming1. What is AOP?AOP is used to separate functionalities that are not related to the core business logic. In another word, it is used to decouple cross-cutting concerns from the core business logic. (e.g. logging, ex...…
-
Transactions in Spring (monolithic)
Transactions in Spring (monolithic)1. TransactionTransaction represents a single unit of work. The ACID properties define transactional requirements. Atomicity: All operations within the transaction must succeed or fail as a unit. If failed, ...…
-
Common Annotations in Spring
Common Annotations in Spring@Component & @Repository & @Service @Component: generic annotation, Spring will automatically detect and register it as a bean @Repository: used to annotate DAO class, subclass of @Component. It is u...…
-
Spring Boot
Spring Boot (knowledge)Spring Boot VS Spring Framework (interview question)In interview: Answer the Feature of Spring Boot and Spring Framework: Spring Framework’s core feature is Dependency Injection (IOC), We don’t need to initialize the ob...…
-
Spring MVC
Spring MVC (All important points)What is Spring MVC?Spring MVC is a framework built on top of the Spring framework, it is a web framework that is used to build web applications. It is based on the MVC architecture, which is model view and controll...…
-
Dependency injection and IOC
Dependency injectionInterview Answer Two types of IOC container: BeanFactory : lazy loaded, XML ApplicationContext : eager loaded, XML & annotation IOC container life cycle: When Spring application starts...…
-
crack Java 8 Stream
StreamStream is used to process a series of operations on a collection in a pipeline. The pipeline consists of a source, zero or more intermediate operations, and a terminal operation. Stream is a one-time object that cannot be reused after the te...…