You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/11/12 07:02:17 UTC

[GitHub] [shardingsphere] strongduanmu commented on a change in pull request #13567: FAQ#27

strongduanmu commented on a change in pull request #13567:
URL: https://github.com/apache/shardingsphere/pull/13567#discussion_r748017396



##########
File path: docs/document/content/reference/faq/_index.cn.md
##########
@@ -320,3 +320,39 @@ ShardingSphere 中很多功能实现类的加载方式是通过 [SPI](https://sh
 更多关于 alias 使用方法请参考 [Proxool官网](http://proxool.sourceforge.net/configure.html)。
 
 PS:sourceforge 网站需要翻墙访问。
+
+## 27. [分片] 设置分片策略和自增主键策略时,*props*属性设置未生效?
+
+回答:
+
+须要特别注意自定义的算法名称约束(仅允许`[a-z][0-9]`和`-`)

Review comment:
       It should be "需要".

##########
File path: docs/document/content/reference/faq/_index.cn.md
##########
@@ -320,3 +320,39 @@ ShardingSphere 中很多功能实现类的加载方式是通过 [SPI](https://sh
 更多关于 alias 使用方法请参考 [Proxool官网](http://proxool.sourceforge.net/configure.html)。
 
 PS:sourceforge 网站需要翻墙访问。
+
+## 27. [分片] 设置分片策略和自增主键策略时,*props*属性设置未生效?
+
+回答:
+
+须要特别注意自定义的算法名称约束(仅允许`[a-z][0-9]`和`-`)
+
+原因如下:
+
+ShardingSphere底层通过Spring的Binder来绑定Properties实例,假如格式不规范会抛出`InvalidConfigurationPropertyNameException`异常,但是ShardingSphere内部消化了这个异常,

Review comment:
       Can this reason be optimized so that spring exceptions can be thrown? Then the FAQ only needs to inform users that spring boot 2 has naming restrictions.

##########
File path: docs/document/content/reference/faq/_index.cn.md
##########
@@ -320,3 +320,39 @@ ShardingSphere 中很多功能实现类的加载方式是通过 [SPI](https://sh
 更多关于 alias 使用方法请参考 [Proxool官网](http://proxool.sourceforge.net/configure.html)。
 
 PS:sourceforge 网站需要翻墙访问。
+
+## 27. [分片] 设置分片策略和自增主键策略时,*props*属性设置未生效?
+
+回答:
+
+须要特别注意自定义的算法名称约束(仅允许`[a-z][0-9]`和`-`)
+
+原因如下:
+
+ShardingSphere底层通过Spring的Binder来绑定Properties实例,假如格式不规范会抛出`InvalidConfigurationPropertyNameException`异常,但是ShardingSphere内部消化了这个异常,

Review comment:
       @sunnyLu9527 You need to add a space on both sides of English words.

##########
File path: docs/document/content/reference/faq/_index.cn.md
##########
@@ -320,3 +320,39 @@ ShardingSphere 中很多功能实现类的加载方式是通过 [SPI](https://sh
 更多关于 alias 使用方法请参考 [Proxool官网](http://proxool.sourceforge.net/configure.html)。
 
 PS:sourceforge 网站需要翻墙访问。
+
+## 27. [分片] 设置分片策略和自增主键策略时,*props*属性设置未生效?

Review comment:
       @sunnyLu9527 Does this problem only occur when using springboot 2? If so, the relevant conditions for using springboot 2 should appear in the FAQ.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org