找不到Spring类WebSecurityConfigurerAdapter - 它在哪个jar中?

时间:2013-12-16 22:16:38

标签: spring spring-security

哪个jar包含spring类

import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

2 个答案:

答案 0 :(得分:18)

spring-security-config*.jar

这应该有效:

    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-config</artifactId>
        <version>version</version>
    </dependency>

答案 1 :(得分:0)

它在Spring-Security-Config jar中

对于Gradle,在依赖项中添加以下行-

implementation group: 'org.springframework.security', name: 'spring-security-config', version: '5.3.0.RELEASE'