Repository navigation
docs(authorization): 移除README中已删除的注解和监听器引用 - #369
Merged
zhou-hao merged 1 commit intoOct 8, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hsweb-authorization/hsweb-authorization-api/README.md中有八个链接指向已不存在的源文件。常用注解表中的
@RequiresExpression和@RequiresDataAccess已在 1e2ec16 (重构权限, 2019-10) 中移除。现有的@DataAccess等数据权限注解都标记了@Deprecated,所以这里直接删除这两行,没有改名。Listener 一节链接的
AuthorizationListener已在 238fe0a (3.0.1, 2018-10) 中删除,五个事件类在 2994556 中从listener/event/移到了events/包。现在事件由AuthorizationController通过ApplicationEventPublisher发布,框架自身用@EventListener监听(如UserTokenWebFilter.handleUserSign)。本次修改把五个链接指向events/,替换了提到AuthorizationListener的那一句,并把例子改为@EventListener方法。未改动:表中
AuthorizationExitEvent的说明是"用户注销时触发",但本仓库中没有代码发布该事件(UserOnSignOut只是监听它),是否保留请维护者决定。只修改了 README,未运行
mvn test。我参与开发了 Striff,一个检查文档与代码是否一致的工具。它的本仓库报告标出了其中的
RequiresDataAccess。