【发布时间】:2014-03-09 17:55:03
【问题描述】:
我创建了一个 Spring Boot 项目来模拟肥皂服务 - 它依赖于 org.springframework.ws:spring-ws-security 来处理 ws-sec 标头,这引入了对 org.springframework.security:spring-security-core 的传递依赖
在我的运行时类路径中添加它会导致 Spring Boot 认为我想要启用 Web 安全性,即使我使用 security.basic.enabled = false 禁用它,我最终也会收到运行时 ClassNotFound 异常,除非我还添加:
compile("org.springframework.security:spring-security-web:$springSecurityVersion")
compile("org.springframework.security:spring-security-config:$springSecurityVersion")
到我的运行时类路径。有什么方法可以向 Boot 表明,尽管它在运行时位于类路径上,但我真的不想与 Spring Security 有任何关系,并使其不需要这些额外的依赖项?
【问题讨论】:
标签: spring gradle spring-boot