java.lang.IllegalArgumentException: Could not resolve placeholder 'foo' in string value "${foo}"

Stack Overflow | VladislavLysov | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Check if you don't have more than one instance of PropertySourcesPlaceholderConfigurer in your code, this might cause conflict.
  2. 0

    Spring Cloud Config in web application

    Stack Overflow | 7 months ago | VladislavLysov
    java.lang.IllegalArgumentException: Could not resolve placeholder 'foo' in string value "${foo}"
  3. 0

    Spring Boot - BeanCreationException:Error creating bean with name 'uploadController'

    Stack Overflow | 6 months ago | flyest
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uploadController': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'multipart.location' in string value "${multipart.location}"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring, maven archetype @value

    Stack Overflow | 5 months ago | Bhaskar Reddy
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
  6. 0

    JSON Transform in Spring Integration and dynamically setting file pattern which is coming in JSON Tag "filePattern"

    Stack Overflow | 4 months ago | user1961493
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'org.springframework.integration.file.config.FileListFilterFactoryBean#0' defined in null: Could not resolve placeholder 'filename.pattern' in string value "${filename.pattern}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'filename.pattern' in string value "${filename.pattern}" Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'org.springframework.integration.file.config.FileListFilterFactoryBean#0' defined in null: Could not resolve placeholder 'filename.pattern' in string value "${filename.pattern}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'filename.pattern' in string value "${filename.pattern}"

  1. marcbouvierdav 4 times, last 4 weeks ago
  2. iferca 6 times, last 3 weeks ago
  3. tvrmsmith 4 times, last 2 months ago
  4. batwalrus76 3 times, last 3 months ago
  5. aldrinleal 1 times, last 3 months ago
7 more registered users
13 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Could not resolve placeholder 'foo' in string value "${foo}"

    at org.springframework.util.PropertyPlaceholderHelper.parseStringValue()
  2. Spring Core
    AbstractPropertyResolver.resolveRequiredPlaceholders
    1. org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)
    2. org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
    3. org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:219)
    4. org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:193)
    4 frames