org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [config-#{environment['config.environment'] ? environment['config.environment'] : 'config'}.properties] cannot be opened because it does not exist

Spring JIRA | sibidiba | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Using Properties in spring config

    Stack Overflow | 5 years ago | echox
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [properties/database.${my.env}.properties] cannot be opened because it does not exist
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    how can i resolve this problm of notfound class exception

    Stack Overflow | 3 years ago | Housseminfo
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [classpath*:META-INF/db.properties] cannot be opened because it does not exist
  4. 0

    Spring Multiple PropertyPlaceholderConfigurer files and database

    Stack Overflow | 3 years ago | famontPT
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.IOException: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '$file{db.driverClassName}'

    1 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. org.springframework.beans.factory.BeanInitializationException

      Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [config-#{environment['config.environment'] ? environment['config.environment'] : 'config'}.properties] cannot be opened because it does not exist

      at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory()
    2. Spring Beans
      PropertyResourceConfigurer.postProcessBeanFactory
      1. org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:87)
      1 frame