kennyk65 / Microservices-With-Spring-Student-Files

Student Files for Microservices with Spring course
308 stars 901 forks source link

Lab 3 - Could not resolve placeholder 'lucky-word' in string value "${lucky-word}" #6

Closed ddevice1234 closed 8 years ago

ddevice1234 commented 8 years ago

Having an issue trying to get the client to run. (Server starts fine).

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'luckyWordController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: java.lang.String com.example.LuckyWordController.luckyWord; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'lucky-word' in string value "${lucky-word}"

lab-3-client.zip

ddevice1234 commented 8 years ago

Nevermind. My lab-3-client.yml file was not formatted correctly. (I didn't have a space after the colon). I just learned that yml files are very particular about their spacing. :-(

aflaifel commented 5 years ago

i have the same issue but couldn't fix it yet

MShodmonov commented 4 years ago

Me too