You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/07/21 09:52:16 UTC

[GitHub] [servicecomb-java-chassis] huanghezhen opened a new issue #1889: microservice.yaml 可以配置多个环境吗? 类似 spring.profiles.active

huanghezhen opened a new issue #1889:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1889


   


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #1889: microservice.yaml 可以配置多个环境吗? 类似 spring.profiles.active

Posted by GitBox <gi...@apache.org>.
liubao68 edited a comment on issue #1889:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1889#issuecomment-662181257


   不支持的,但是可以通过在classpath存放一个文件或者通过动态配置、环境变量覆盖,也可以使用 maven 的 profile 机制进行打包。 参考: https://docs.servicecomb.io/java-chassis/zh_CN/config/general-config/ 
   
   
   


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] huanghezhen commented on issue #1889: microservice.yaml 可以配置多个环境吗? 类似 spring.profiles.active

Posted by GitBox <gi...@apache.org>.
huanghezhen commented on issue #1889:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1889#issuecomment-662181715


   好的好的 谢谢 谢谢


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] huanghezhen commented on issue #1889: microservice.yaml 可以配置多个环境吗? 类似 spring.profiles.active

Posted by GitBox <gi...@apache.org>.
huanghezhen commented on issue #1889:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1889#issuecomment-707548580


   servicecomb 与 spring 解析yml数组不统一,导致使用application配置多个注册中心(集群模式)的时候报错


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1889: microservice.yaml 可以配置多个环境吗? 类似 spring.profiles.active

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1889:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1889#issuecomment-707705303


   @huanghezhen 可以研究下 spring 如何配置。 BTW: 不要在已经 closed 的 issue 里面回复, 可以另外开启新的 issue。 


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] huanghezhen closed issue #1889: microservice.yaml 可以配置多个环境吗? 类似 spring.profiles.active

Posted by GitBox <gi...@apache.org>.
huanghezhen closed issue #1889:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1889


   


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1889: microservice.yaml 可以配置多个环境吗? 类似 spring.profiles.active

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1889:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1889#issuecomment-664714689


   补充说明下, 如果你使用 spring boot 运行 java-chassis, java-chassis 也支持读取 spring 的配置,这种情况下, 你仍然可以使用 spring.profiles.active 机制创建多个 application*.yml 文件。 


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1889: microservice.yaml 可以配置多个环境吗? 类似 spring.profiles.active

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1889:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1889#issuecomment-662181257


   不支持的,但是可以通过在classpath存放一个文件或者通过动态配置、环境变量覆盖。 参考: https://docs.servicecomb.io/java-chassis/zh_CN/config/general-config/
   
   
   


----------------------------------------------------------------
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.

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