How to disable spring-security login screen?

前端 未结 7 2740
慢半拍i
慢半拍i 2020-12-14 00:23

I\'m using spring-boot-starter-security dependency, to make use of several classes that come with spring-security. But as I want to integrate it in

相关标签:
7条回答
  • 2020-12-14 01:21

    There seems to be a simpler solution.

    Simply put this annotationabove your main class or the same place as your SpingBootApplication annotation

    @EnableAutoConfiguration(exclude = {org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class})

    0 讨论(0)
提交回复
热议问题