java.lang.IllegalArgumentException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if you don't have more than one instance of PropertySourcesPlaceholderConfigurer in your code, this might cause conflict.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Spring Cloud Config in web application
    via Stack Overflow by VladislavLysov
    ,
  • Spring, maven archetype @value
    via Stack Overflow by Bhaskar Reddy
    ,
  • Could not resolve placeholder in string value
    via Stack Overflow by Hwen
    ,
    • java.lang.IllegalArgumentException: Could not resolve placeholder 'foo' in string value "${foo}" at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174) at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126) at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:219) at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:193)

    Users with the same issue

    tvrmsmith
    14 times, last one,
    batwalrus76
    3 times, last one,
    iferca
    1 times, last one,
    SteVio1989
    1 times, last one,
    musketyr
    1 times, last one,
    45 more bugmates