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

建议增加配置文件跳转实体类功能 #321

Open
liucq200518 opened this issue Dec 3, 2024 · 5 comments
Open

建议增加配置文件跳转实体类功能 #321

liucq200518 opened this issue Dec 3, 2024 · 5 comments

Comments

@liucq200518
Copy link

类似springboot,在执行 mvn complier 之后,能够自动解析配置类,并自动形成和yaml配置项的映射关系,实现 yaml 中的配置项代码提示和实体类跳转

@ConfigurationProperties(prefix = "seetaface6.registration")
@Data
public class FaceRegistrationProperties{
    private String name;
}
seetaface6.registration:
    name: aaaaa
@noear
Copy link
Member

noear commented Dec 4, 2024

收到

@fuzi1996
Copy link
Contributor

应该先实现 ConfigurationProperties 这个功能然后再支持编译生成元数据最后通过devtool支持跳转功能,有意思,我来试试

@noear
Copy link
Member

noear commented Feb 22, 2025

@fuzi1996 现在有一个:@BindProps 注解了。。。为后面的自动解析配置类作基础。。

本想省个注解。。。看来是省不掉

@fuzi1996
Copy link
Contributor

ok,我就用BindProps实现

@fuzi1996
Copy link
Contributor

fuzi1996 commented Mar 1, 2025

#335 已支持编译时 生成元数据 META-INF/solon/solon-configuration-metadata.json,插件改造稍后

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

3 participants