为什么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>
`
但在我的应用程序中我需要编译范围...
通过说
“这些软件包中的代码都不能直接在应用程序中使用。”
他们的意思是说:
“不要直接在代码中调用方法或使用此包中的类”