halo-dev / halo-dev/docs

插件里面定义通过@ConfigurationProperties读取配置文件数据问题

Open
#307 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/improvement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.