Spring Boot + Security + Multi HTTP Web Configuration

后端 未结 3 1046
礼貌的吻别
礼貌的吻别 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:31

    I found I could solve this problem by annotating my class with @EnableWebSecurity after reading this hint: https://github.com/spring-projects/spring-data-examples/issues/189#issuecomment-229552207

提交回复
热议问题