You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2022. It is now read-only.
发布一个facade,定义interface,然后自己新建了一个Auth的annotation,但是发现不生效
@get
@path("user/{id}")
@Auth
Result getUser(@PathParam("id") String id);
annotation的定义在这
@namebinding
@retention(RUNTIME)
@target({METHOD, TYPE})
public @interface Auth {
}
@Provider
@Auth
@priority(Priorities.AUTHENTICATION)
public class JWTAuthFilter1 implements ContainerRequestFilter {
}
我实际测试过,在jax.rs 空项目中定义这个annotation是会生效的,但是没法在sofaboot里生效?
The text was updated successfully, but these errors were encountered: