首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >spring-security-oauth2不支持Java 10

spring-security-oauth2不支持Java 10
EN

Stack Overflow用户
提问于 2018-06-06 03:08:25
回答 1查看 712关注 0票数 3

我目前使用的环境是Spring Boot2、Tomcat9和Java10。

我无法在不添加以下依赖项的情况下使用Spring OAuth2包--我通过RuntimeExceptions找到了这些依赖项--所以我不能100%确定这能解决所有问题。我知道Java9已经从SE中删除了这些包,但是有没有人为Spring oAuth2确定了一个更好的依赖树,因为它似乎不能在Java9或更高版本上运行?

Spring Security oAuth2...

代码语言:javascript
复制
org.springframework.security.oauth:spring-security-oauth2:2.3.3.RELEASE

依赖于这些基于试验和错误的软件包...

代码语言:javascript
复制
javax.xml.bind:jaxb-api:2.3.0
com.sun.xml.bind:jaxb-impl:2.3.0
com.sun.xml.bind:jaxb-core:2.3.0
javax.activation:activation:1.1.1  

这与以下内容有关...很明显Spring Boot需要一个更新的oauth2实现。

代码语言:javascript
复制
 JEP 320 is targeted for Java 11 (September 2018) and will remove the following modules deprecated "for removal" by Java 9:

 java.corba — CORBA
 java.transaction — The subset of the Java Transaction API defined by Java SE to support CORBA Object Transaction Services
 java.activation — JavaBeans Activation Framework
 java.xml.bind — Java Architecture for XML Binding (JAXB)
 java.xml.ws — Java API for XML Web Services (JAX-WS), Web Services Metadata for the Java Platform, and SOAP with Attachments for Java (SAAJ)
 java.xml.ws.annotation — The subset of the JSR-250 Common Annotations defined by Java SE to support web services
EN

回答 1

Stack Overflow用户

发布于 2018-07-22 17:19:34

是的,这是真的。像我这样的Springboot初学者,我不清楚为什么会存在这些依赖关系,以及它们的确切目的是什么。

但是,通过在Spring Boot中将这些依赖项添加到我的Gradle配置中,并使用Java10,我设法让它正常工作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50707308

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档