Spring Boot + Security + Multi HTTP Web Configuration

后端 未结 3 1043
礼貌的吻别
礼貌的吻别 2021-02-06 08:54

I\'m trying to do an example using spring-boot with spring security. My idea is to create a web app and also provide an API, I would like to both have security; so I need to cr

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 09:42

    I'm also faced the same issue. But I got it solved when I extend the WebSecurityConfiguration master class from WebSecurityConfigurerAdapter.

    Kindly refer the following stackoverflow post in which you can find the full configuration.

    Spring Security HTTP Basic for RESTFul and FormLogin for web - Annotations

提交回复
热议问题