close

[Solved] java.lang.IllegalArgumentException: Could not resolve placeholder

Hello Guys, How are you all? Hope You all Are Fine. Today Whenever I am running spring-boot project I am facing following error Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder ‘name’ in string value “${name}” in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How This Error Occurs ?

Whenever I am running spring-boot project I am facing following error.

Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder ‘language’ in string value “${language}”

How To Solve java.lang.IllegalArgumentException: Could not resolve placeholder Error ?

  1. How To Solve java.lang.IllegalArgumentException: Could not resolve placeholder Error?

    To Solve java.lang.IllegalArgumentException: Could not resolve placeholder Error You just need to add this lines in your pom.xml file under the <resources> section. Now, your error might be solved. Second solution is Just try to Rebuild Project with Build -> Rebuild Project, Now your error should be fixed.

  2. java.lang.IllegalArgumentException: Could not resolve placeholder

    To Solve java.lang.IllegalArgumentException: Could not resolve placeholder Error You just need to add this lines in your pom.xml file under the <resources> section. Now, your error might be solved. Second solution is Just try to Rebuild Project with Build -> Rebuild Project, Now your error should be fixed.

Solution 1: add following code in pom.xml

You just need to add this lines in your pom.xml file under the <resources> section.

<resource>
     <directory>src/main/resources</directory>
     <filtering>true</filtering>
     <includes>
          <include>**/*.properties</include>
     </includes>
</resource>

Now, your error might be solved.

Solution 2: Rebuild Project

Just try to Rebuild Project with Build -> Rebuild Project, Now your error should be fixed.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

1 thought on “[Solved] java.lang.IllegalArgumentException: Could not resolve placeholder”

Leave a Comment