Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StpUtil 构造方法为private #550

Open
zhuyeHe opened this issue Nov 28, 2023 · 3 comments
Open

StpUtil 构造方法为private #550

zhuyeHe opened this issue Nov 28, 2023 · 3 comments

Comments

@zhuyeHe
Copy link

zhuyeHe commented Nov 28, 2023

对以下问题有疑问:

为什么StpUtil的构造函数在1.30以后改为了private
由于项目的权限校验较为复杂,我继承了StpUtil以及其他几个类实现了自定义的权限校验
在升级satoken版本时,发现了一些问题,由于StpUtil的构造函数改为了private,导致我无法继承

@sheip9
Copy link

sheip9 commented Dec 11, 2023

同问

@tennisdd
Copy link

不能继承确实挺麻烦的,复制同样的代码重新写一遍对升级不友好

@click33
Copy link
Collaborator

click33 commented May 9, 2024

StpUtil 里都是static代码,oop特性中 static代码是不能继承的吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants