How to get past the Authentication Required Spring-boot Security

前端 未结 5 1130
无人共我
无人共我 2021-02-12 17:18

I have put in the password which is \"root\" and it keeps popping back up. How can I suppress this or get rid of it. I am using spring boot and spring security.

5条回答
  •  逝去的感伤
    2021-02-12 18:13

    Here was the issues

    (1) .loginPage("/index") was saying my login page was at index, however I just wanted to use spring's default login page.

    (2) had to to move the security package inside the demo package (the main package). Thanks to @Sanjay for suggesting that. I tried to use @ComponantScan but it could not get it to work.

提交回复
热议问题