Spring security custom success or fail handler

Spring security custom success or fail handler

Table of Contents1. Overview2. Example2.1 SecurityConfiguration2.2 CustomAuthenticationSuccessHandler2.3 CustomAuthenticationFailureHandler3. References4. Source Code 1. Overview This article explains about Spring security custom success or fails handler. Spring security provides complete customization on authentication…

Spring Boot Session Listener Example

Spring Boot Session Listener Example

Table of Contents1. Overview2. Example2.1 pom.xml2.2 HttpSessionConfig2.3 SpringBootConfig2.4 SessionDemoController2.5 Build Application2.6 Run Application3. References4. Source Code 1. Overview This article contains Spring Boot Session Listener Example or Spring boot HttpSessionListener…

Spring boot multiple main class

Spring boot multiple main class

Table of Contents1. OverviewException: Spring boot Unable to find a single main class from the following candidatesSolution 1 – mainClass in spring boot maven plugin:Solution 2: add start-class in maven propertiesReferences:…

Spring boot request routing example

Spring boot request routing example

Table of Contents1. Overview2. Example2.1 pom.xml2.2 application.yml2.3 SpringBootConfig2.4 ZuulAPIController2.5 Output:Let Check Endpoints3. References 1. Overview This article is about to Spring boot request routing example using zuul API. zuul API is used…

Spring boot disable endpoints security

Spring boot disable endpoints security

Table of Contents1. Overview2. How to disable endpoint security2.1 application.yml2.2 application.propertiesNOTE: It is not advisable to disable endpoint security in production2.3 Output:3. References 1. Overview This article will provide ways to Spring…