You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by de...@apache.org on 2023/02/19 08:28:42 UTC

[shenyu] branch master updated: Fixed a NullPointerException occurred when starting example-springcloud with nacos configuration. (#4396)

This is an automated email from the ASF dual-hosted git repository.

dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new 85c0fb0b0 Fixed a NullPointerException occurred when starting example-springcloud with nacos configuration. (#4396)
85c0fb0b0 is described below

commit 85c0fb0b0cd0e7cde8b09ec8b217f33b4b3e7656
Author: mildness_jy <39...@qq.com>
AuthorDate: Sun Feb 19 16:28:31 2023 +0800

    Fixed a NullPointerException occurred when starting example-springcloud with nacos configuration. (#4396)
    
    * update yml shenyu.register.props.nacosNameSpace
    
    A nullpointerEXException occurred when starting example-springcloud with nacos configuration.
    The associated code is in org.apache.shenyu.register.client.nacos.NacosClientRegisterRepository:nacosProperties.put(PropertyKeyConst.NAMESPACE, properties.getProperty(NAMESPACE));
    
    * Configuration in the Quickstart section of the documentation
    
    If you do not set it, you will not be able to reproduce the demonstration of the admin project plug-in rule list on the document
---
 .../shenyu-examples-springcloud/src/main/resources/application.yml       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/shenyu-examples/shenyu-examples-springcloud/src/main/resources/application.yml b/shenyu-examples/shenyu-examples-springcloud/src/main/resources/application.yml
index 8c5282c8d..be27e7d69 100644
--- a/shenyu-examples/shenyu-examples-springcloud/src/main/resources/application.yml
+++ b/shenyu-examples/shenyu-examples-springcloud/src/main/resources/application.yml
@@ -51,6 +51,7 @@ shenyu:
     props:
       username: admin
       password: 123456
+      nacosNameSpace: ShenyuRegisterCenter
   client:
     springCloud:
       props: