在Spring Security中配置antMatchers

时间:2018-06-20 12:03:40

标签: spring spring-mvc spring-security

// You have the response here as:
this.dataSet = res.data;

// This is how you will use it in your view
<tbody>
   <tr *ngFor="let data of dataSet">
      <td>{{ data.one }}</td>
      <td>{{ data.two }}</td>
   </tr>
</tbody>

// But the view does not know when to update the view, So you have use *ngIf so as 
// the data is received you will show the results
<tbody *ngIf="dataSet"> 

在这里,我以USER角色和ADMIN角色登录。

当我以USER角色登录时,我可以访问

http://localhost:8081/ADMIN_DEV_8/ api /设置 / getLanguages

但是,即使我使用ADMIN登录,也会被禁止使用403。我是否可以知道在过滤器链中如何评估匹配器,并且我需要一个很好的参考站点来很好地研究如何配置匹配器。任何人都可以帮助我。

谢谢

0 个答案:

没有答案
相关问题