Monday, December 24, 2018

Disabling Spring Security in Spring Boot

If you have a Spring boot application configured with the Spring Security, whenever you are requesting a resource/page, it will invoke the basic security and show you a login page. So how to avoid this and access your resource without any security restriction. The simple step is use security.ignored properties. Add the below


in your, you are good to go. Now accessing any restricted resource doesn't put any constraints for you.

Note: This works fine for version below Spring Boot 2.0.0. I haven't tried or exposed to Spring Boot 2.0.0.

Happy Programming...!!!