-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Jing Xue opened SPR-7547 and commented
I set the location of a PropertyPlaceholderConfigurer to a ByteArrayResource and got this error upon starting up:
java.lang.IllegalStateException: resource loaded from byte array does not have a filename
at org.springframework.core.io.AbstractResource.getFilename(AbstractResource.java:157)
at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:182)
at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:603)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
Affects: 3.0.4