When SpringBoot integration SpringSecurity, obviously the package is imported, but can not achieve the relevant certification interfaces.

      Question: SpringBoot integration SpringSecurity, obviously the package is imported, but can not achieve the relevant certification interfaces.

      Phenomenon: change Maven, looking dependence, see External Libraries jar package related to the relevant interface, there are interfaces, are not related to the introduction of interfaces WebSecurityConfigurerAdapter, you can not use @EnableWebSecurity this annotation, annotations can not import the package required.

 

Solution: SpringBoot later will depend on the parent unified management version of the module can be a little lower, down 2.1.3.RELEASE, as shown below:

 

Guess you like

Origin www.cnblogs.com/shijinglu2018/p/12320662.html