当前位置: 动力学知识库 > 问答 > 编程问答 >

Jasypt with Spring fails to load Bean

问题描述:

I am trying to integrate Jasypt with Spring to load the properties file .

I am using the following

class="org.jasypt.spring3.properties.EncryptablePropertyPlaceholderConfigurer">

instead of the Spring provided placeholder .

Although I have provided all the configurations correctly as the same configurations work in a different Web project that I own . But it fails in the Java project with the following error .

at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:172)

at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:156)

at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:78)

at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)

at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:669)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)

at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)

Can somebody tell me as to what can cause the issue ??

分享给朋友:
您可能感兴趣的文章:
随机阅读: