Home  >  Q&A  >  body text

java - SpringCloud config 注册服务后client取值问题

PHP中文网PHP中文网2763 days ago802

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-18 10:37:28

    The reason has been found. The spring.application.name of config-client must match its own configuration file name.

    For example, the configuration file is:
    testConfig-test.properties

    At this time, the corresponding spring.application.name=testConfig of config-cleint

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:37:28

    What about the client’s property configuration? The client needs to point to the configuration server. And can testConfig-test.properties be renamed?

    reply
    0
  • Cancelreply