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

Provider注解 #75

Open
jasonwzw opened this issue Jul 20, 2019 · 1 comment
Open

Provider注解 #75

jasonwzw opened this issue Jul 20, 2019 · 1 comment

Comments

@jasonwzw
Copy link

jasonwzw commented Jul 20, 2019

书中原文第60页:

Provider注解中提供了两个必填属性 type和method。
type配置的是一个包含method属性指定方法的类,这个类必须有空的构造函数

我发现书中的PrivilegeProvider类并没有特意写一个空的构造函数
并且测试不写空构造函数也不会出错
写成"必须要能够通过无参的构造函数来初始化"是不是更合适一些?

@abel533
Copy link
Contributor

abel533 commented Aug 2, 2019

这里应该体现出 默认无参,的构造方法。文中用不合适。

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

No branches or pull requests

2 participants