gpt4 book ai didi

java - 如何更改 ResourceServerConfiguration 顺序

转载 作者:行者123 更新时间:2023-12-02 02:26:30 25 4
gpt4 key购买 nike

当放置在@EnableResourceServer上时,enabled ResourceServerConfiguration .

虽然ResourceServerConfiguration的默认顺序是3 ,我想把它改低。

如何更改?

最佳答案

这不可能。

<小时/>

我错过了following description ...:

The annotation creates a WebSecurityConfigurerAdapter with a hard-coded Order (of 3). It's not possible to change the order right now owing to technical limitations in Spring, so you must avoid using order=3 in other WebSecurityConfigurerAdapters in your application (Spring Security will let you know if you forget).

关于java - 如何更改 ResourceServerConfiguration 顺序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57250394/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com