spring-cloud / spring-cloud-config

External configuration (server and client) for Spring Cloud
Apache License 2.0
1.96k stars 1.29k forks source link

always could not resolve placeholder 'testName' in value "${testName}" #1905

Closed krmao closed 3 years ago

krmao commented 3 years ago

Describe the bug Please provide details of the problem, including the version of Spring Cloud that you are using.

I spent two days to use the library but always get the error, very hard to use felling.

Sample If possible, please provide a test case or sample application that reproduces the problem. This makes it much easier for us to diagnose the problem and to verify that we have fixed it.

code is here https://github.com/krmao/template/tree/master/service/springcloud

config server is ok , and set testName in source bootstrap.yml is ok ,but set in github https://github.com/krmao/springcloud-config-repo/tree/master/files always get the error,

I almost give up now! very sad!

image

image

image

ryanjbaxter commented 3 years ago

This is not a minimal sample, please provide the simplest sample possible to reproduce the problem along with instructions on how to reproduce the problem with the sample.

krmao commented 3 years ago

After a restudy, it was found to be a problem with IntelliJ IDEA 2019.3, Everything is OK while execute the command bellow by gradle:

./gradlew :app-b:clean :app-b:bootRun --info --stacktrace

Still got the error if use IntelliJ IDEA 2019.3

IDEA self spring-boot run configuration is really different use gradle bootRun