mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-06-28 04:35:16 +08:00
Pre Merge pull request !335 from chengliejian/dev
This commit is contained in:
commit
c46b69dfb1
@ -68,7 +68,8 @@ public class SaTokenInterceptor implements SaFilter, RouterInterceptor {
|
||||
* @param paths 路由
|
||||
* @return 对象自身
|
||||
*/
|
||||
public SaTokenInterceptor addInclude(String... paths) {
|
||||
@Override
|
||||
public SaTokenInterceptor addInclude(String... paths) {
|
||||
includeList.addAll(Arrays.asList(paths));
|
||||
return this;
|
||||
}
|
||||
@ -79,6 +80,7 @@ public class SaTokenInterceptor implements SaFilter, RouterInterceptor {
|
||||
* @param paths 路由
|
||||
* @return 对象自身
|
||||
*/
|
||||
@Override
|
||||
public SaTokenInterceptor addExclude(String... paths) {
|
||||
excludeList.addAll(Arrays.asList(paths));
|
||||
return this;
|
||||
@ -90,6 +92,7 @@ public class SaTokenInterceptor implements SaFilter, RouterInterceptor {
|
||||
* @param pathList 路由集合
|
||||
* @return 对象自身
|
||||
*/
|
||||
@Override
|
||||
public SaTokenInterceptor setIncludeList(List<String> pathList) {
|
||||
includeList = pathList;
|
||||
return this;
|
||||
@ -101,6 +104,7 @@ public class SaTokenInterceptor implements SaFilter, RouterInterceptor {
|
||||
* @param pathList 路由集合
|
||||
* @return 对象自身
|
||||
*/
|
||||
@Override
|
||||
public SaTokenInterceptor setExcludeList(List<String> pathList) {
|
||||
excludeList = pathList;
|
||||
return this;
|
||||
@ -156,6 +160,7 @@ public class SaTokenInterceptor implements SaFilter, RouterInterceptor {
|
||||
* @param auth see note
|
||||
* @return 对象自身
|
||||
*/
|
||||
@Override
|
||||
public SaTokenInterceptor setAuth(SaFilterAuthStrategy auth) {
|
||||
this.auth = auth;
|
||||
return this;
|
||||
@ -167,6 +172,7 @@ public class SaTokenInterceptor implements SaFilter, RouterInterceptor {
|
||||
* @param error see note
|
||||
* @return 对象自身
|
||||
*/
|
||||
@Override
|
||||
public SaTokenInterceptor setError(SaFilterErrorStrategy error) {
|
||||
this.error = error;
|
||||
return this;
|
||||
@ -178,6 +184,7 @@ public class SaTokenInterceptor implements SaFilter, RouterInterceptor {
|
||||
* @param beforeAuth see note
|
||||
* @return 对象自身
|
||||
*/
|
||||
@Override
|
||||
public SaTokenInterceptor setBeforeAuth(SaFilterAuthStrategy beforeAuth) {
|
||||
this.beforeAuth = beforeAuth;
|
||||
return this;
|
||||
|
Loading…
Reference in New Issue
Block a user