JWT+弹簧拦截器+自定义注释与弹簧安全性

发布于 2025-01-22 05:54:27 字数 1730 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痴意少年 2025-01-29 05:54:27

您已经实施了用于身份验证和授权的自定义安全模型。如果其他人要查看您的代码,他们将能够最终弄清楚,但他们会有很多问题。基于春季安全的实现更容易理解和扩展。春季安全性还为测试提供了支持。

如果要切换到基于OAuth的AUTH模型,则必须自己执行。弹簧安全将使此过渡更快。

You have implemented custom security model for authentication and authorization. If someone else is to look at your code, they would be able to eventually figure it out but they would have many questions. Spring security based implementation is easier to understand and extend. Spring security also provides support for testing.

If you were to switch to an oauth based auth model, you would have to do it yourself. Spring security would make this transition mush faster.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文