Skip to content
Advertisement

SpringBoot 401 UnAuthorized even with out security

I did not use Spring Security but it is asking me to authenticate.

enter image description here

Exception for URL(http://localhost:8080/SpringJob/ExecuteJob):

JavaScript

application-dev.xml

JavaScript

build.gradle snippet

JavaScript

Controller

JavaScript

Advertisement

Answer

Try to add below lines in your application.properties file

JavaScript

According to spring doc, use security.ignored=

Comma-separated list of paths to exclude from the default secured paths

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement