摘要: 核心其实就一句代码: services.AddControllers(x => x.Filters.Add<AuthorizeAttribute>()); PS, 如果Controller中的代码加了 [AllowAnonymous] 的,那么可以覆盖AuthorizeAttribute So ea 阅读全文
posted @ 2022-12-13 13:49 billqian 阅读(28) 评论(0) 推荐(0) 编辑