refactor: 当oauth2授权*时,使用单例token.

This commit is contained in:
zhouhao
2023-07-31 18:52:37 +08:00
parent 181607e507
commit 81bd7d07da
8 changed files with 53 additions and 21 deletions

View File

@@ -1,5 +1,6 @@
package org.hswebframework.web.authorization.basic.aop;
import org.hswebframework.ezorm.core.CastUtil;
import org.hswebframework.ezorm.core.param.Param;
import org.hswebframework.ezorm.core.param.QueryParam;
import org.hswebframework.ezorm.core.param.Term;
@@ -134,7 +135,7 @@ public class AopAuthorizingControllerTest {
.flatMapIterable(Function.identity())
.next()
.map(Term::getValue)
.<Collection<Object>>map(Collection.class::cast)
.map(CastUtil::<Collection<Object>>cast)
.flatMapIterable(Function.identity())
.next()
.as(StepVerifier::create)