Spring安全支持jdk8吗?
Does Spring Security support jdk8?
Spring 安全性是否与 Java 8 (Oracle) 兼容?
我认为 v4 是,因为它需要支持 jdk8 的 Spring v4。但是我找不到任何关于此的明确信息。
我检查了 Spring Security Bug Tracker 并发现了 OpenJdk8 的一个未解决的小问题——但是它是在 Spring Security v4 发布之前写的。
我在 Spring 安全性 v3.x 上找不到任何关于 jdk8 的内容。有谁知道 works/is 是否受支持?
Spring Framework 4.1.6 is also the first release to be formally compatible with the recently released JDK 8 update 40
来自Spring博客
这应该会有帮助:
spring-core 3.2.9 + java 8
Spring 3.2.x will only support Java 8 runtimes compiled against Java 7
Spring Security Reference 中有一节指出:
Spring Security 2.0.x requires a minimum JDK version of 1.4 [...]
Spring Security 3.0 and 3.1 require at least JDK 1.5 [...]
但是,正如问题中所指出的,这不是很明确!尽管是 Spring Security 4.2.0 的参考,上面引用的部分根本没有关于 Spring Security 4 的详细信息。我怀疑该部分文档已经过时了。
A different portion of the documentation 有此信息(添加重点):
There are a number of ways in which Spring Security can resolve the method arguments. [...] By default, the following options are tried for a method as a whole.
- [...]
- If JDK 8 was used to compile the source with the -parameters argument and Spring 4+ is being used, then the standard JDK reflection API is used to discover the parameter names. This works on both classes and interfaces.
虽然不明确,但记录 Spring 安全性如何处理使用 JDK 8 编译的代码(如果使用 JDK 8.
不起作用)似乎是不合逻辑的
Spring 安全性是否与 Java 8 (Oracle) 兼容?
我认为 v4 是,因为它需要支持 jdk8 的 Spring v4。但是我找不到任何关于此的明确信息。 我检查了 Spring Security Bug Tracker 并发现了 OpenJdk8 的一个未解决的小问题——但是它是在 Spring Security v4 发布之前写的。
我在 Spring 安全性 v3.x 上找不到任何关于 jdk8 的内容。有谁知道 works/is 是否受支持?
Spring Framework 4.1.6 is also the first release to be formally compatible with the recently released JDK 8 update 40
来自Spring博客
这应该会有帮助: spring-core 3.2.9 + java 8
Spring 3.2.x will only support Java 8 runtimes compiled against Java 7
Spring Security Reference 中有一节指出:
Spring Security 2.0.x requires a minimum JDK version of 1.4 [...]
Spring Security 3.0 and 3.1 require at least JDK 1.5 [...]
但是,正如问题中所指出的,这不是很明确!尽管是 Spring Security 4.2.0 的参考,上面引用的部分根本没有关于 Spring Security 4 的详细信息。我怀疑该部分文档已经过时了。
A different portion of the documentation 有此信息(添加重点):
There are a number of ways in which Spring Security can resolve the method arguments. [...] By default, the following options are tried for a method as a whole.
- [...]
- If JDK 8 was used to compile the source with the -parameters argument and Spring 4+ is being used, then the standard JDK reflection API is used to discover the parameter names. This works on both classes and interfaces.
虽然不明确,但记录 Spring 安全性如何处理使用 JDK 8 编译的代码(如果使用 JDK 8.
不起作用)似乎是不合逻辑的