Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a46230a

Browse files
committed
authentication-server启动时加载资源异常时错误日志
1 parent aaf490e commit a46230a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
package com.springboot.cloud.auth.authentication.provider;
22

3-
import com.springboot.cloud.sysadmin.organization.entity.po.Resource;
43
import com.springboot.cloud.common.core.entity.vo.Result;
4+
import com.springboot.cloud.sysadmin.organization.entity.po.Resource;
5+
import lombok.extern.slf4j.Slf4j;
56
import org.springframework.stereotype.Component;
67

78
import java.util.HashSet;
89
import java.util.Set;
910

1011
@Component
12+
@Slf4j
1113
public class ResourceProviderFallback implements ResourceProvider {
1214
@Override
1315
public Result<Set<Resource>> resources() {
16+
log.error("认证服务启动时加载资源异常!未加载到资源");
1417
return Result.success(new HashSet<Resource>());
1518
}
1619

1720
@Override
1821
public Result<Set<Resource>> resources(String username) {
22+
log.error("认证服务查询用户异常!查询用户资源为空!");
1923
return Result.success(new HashSet<Resource>());
2024
}
2125
}

‎auth/authentication-server/src/main/java/com/springboot/cloud/auth/authentication/service/impl/ResourceService.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public Map<RequestMatcher, ConfigAttribute> loadResource() {
5858
resource -> this.newMvcRequestMatcher(resource.getUrl(), resource.getMethod()),
5959
resource -> new SecurityConfig(resource.getCode())
6060
));
61-
log.debug("resourceConfigAttributes:{}", this.resourceConfigAttributes);
61+
log.debug("init resourceConfigAttributes:{}", this.resourceConfigAttributes);
6262
return this.resourceConfigAttributes;
6363
}
6464

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /