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

yml 中变量设置问题 #22

Open
ToothFish opened this issue Apr 22, 2019 · 0 comments
Open

yml 中变量设置问题 #22

ToothFish opened this issue Apr 22, 2019 · 0 comments

Comments

@ToothFish
Copy link

配置类中的 getter 方法不标准时,有时会导入变量 inject 失败
yml 文件
person:
iname: john
age: 11
配置类
@ConfigurationProperties(prefix = "person")
void setIname(String name){ ... }
public String getIName(){ ... }

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

1 participant