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

时间:2018-05-08 11:07:34

标签: java spring spring-boot spring-security

为什么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>

`

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

1 个答案:

答案 0 :(得分:1)

  

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

他们的意思是说:

  

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

相关问题