Base Classes for Spring Security Implementation

WebSecurityConfigurerAdapter

To enable HTTP Security in Spring, we need to extend the WebSecurityConfigurerAdapter. The “@EnableWebSecurity” annotation and “WebSecurityConfigurerAdapter” work together to provide web based security.

@Configuration
@EnableWebSecurity
public class ApiSecurityConfig extends WebSecurityConfigurerAdapter {
...
}

AuthenticationEntryPoint

By default, the BasicAuthenticationEntryPoint provisioned by Spring Security returns a…

Notes on Servlet, Servlet Container, Filter, Interceptor, HandlerInterceptor

What is a Servlet?

It is a Java class that is used to extend the capabilities of servers that host applications accessed by means of a request-response programming model.

Java Servlet technology defines HTTP-specific servlet classes. The javax.servlet and javax.servlet.http packages provide interfaces and classes for…

How to Connect to Multiple and Different Database Sources in Your Spring Boot Project

I had described how to connect to different Cassandra database keyspaces in my previous post:

My project was implemented with Spring Boot 2.3.5 RELEASE.

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.5.RELEASE</version>
</parent>

These were my other dependencies used for…

Short Notes about Messaging Protocols, Apache Kafka and RabbitMQ.

Before choosing a messaging queue, there are some concepts, based on your requirements, that should be taken into consideration. Some of them are:

  • Broker Scale: The number of messages sent per second in the system.
  • Consumer Capability: Whether the broker is…

Señorita Developer

I would love to change the world, but they won’t give me the source code | coding 👩🏼‍💻 | coffee ☕️ | jazz 🎷 | anime 🐲 | books 📚 | drawing 🎨

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store