插件里面定义通过@ConfigurationProperties读取配置文件数据问题
Nobody has claimed this yet.
- Dominant language
- SCSS
- Stars
- 38
- Forks
- 133
- Avg merge
- 9h 13m
- Merged PRs (30d)
- 7
Description
经过与 @halo-dev/sig-halo 确认,@ConfigurationProperties 无法读取 Halo 本身 application.yaml 中的数据,只能通过 halo-workdir/plugins/configs/{plugin-name}.yaml下面定义的数据,建议将这部分补充到插件开发的文档中
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the plugin development documentation and review how configuration is described, comparing Halo's application.yaml with halo-workdir/plugins/configs/{plugin-name}.yaml. Document that @ConfigurationProperties reads values from the plugin configuration path rather than Halo's application.yaml, and consider the work done when this limitation and supported location are clear to plugin developers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- spring-boot
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100