为什么spring安全配置不应该直接在应用程序中使用?

问题描述 投票:-1回答:1

为什么org.springframework.security.config上的描述说“这些包中的代码都不能直接在应用程序中使用”。 ?

(baeldung)spring-security-with-maven他们说使用`

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-config</artifactId>
    <version>${org.springframework.security.version}</version>
    **<scope>runtime</scope>**
</dependency>

`

但在我的应用程序中我需要编译范围...

java spring spring-boot spring-security
1个回答
1
投票

通过说

“这些软件包中的代码都不能直接在应用程序中使用。”

他们的意思是说:

“不要直接在代码中调用方法或使用此包中的类”

© www.soinside.com 2019 - 2024. All rights reserved.