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

@Space property configurable supported #317

Merged
merged 3 commits into from
Sep 4, 2024

Conversation

charle004
Copy link
Contributor

@space注解值可通过spring配置文件配置
方法:在获取@space注解name时,通过Spring的 Environment 对象的 resolveRequiredPlaceholders 方法解析配置,同时也兼容固定name的情况。
使用示例: @space(name = "${nebula.secondSpace}") , spring配置文件中若无 nebula.secondSpace 自定义配置则抛出ResourceLoadException

核心改动:
image

Copy link
Collaborator

@CorvusYe CorvusYe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

基类的灵活提高了。很棒的功能。
可以的话在 CHANGELOG 跟 pom 中的 developer 再补一下信息哈

@@ -74,7 +74,7 @@ private void setBeans(ConfigurableListableBeanFactory beanFactory) {
}

public MapperContext mapperContext(NebulaPool nebulaPool) {
DaoResourceLoader daoBasicResourceLoader = new DaoResourceLoader(parseCfgProps);
DaoResourceLoader daoBasicResourceLoader = new DaoResourceLoader(parseCfgProps,this.context);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这边代码风格检查应该是通不过,参数间需要空格,单行代码不超过 100 个字符长度好像

@charle004
Copy link
Contributor Author

基类的灵活提高了。很棒的功能。 可以的话在 CHANGELOG 跟 pom 中的 developer 再补一下信息哈

OKOK

@CorvusYe CorvusYe merged commit 2946f93 into nebula-contrib:master Sep 4, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants