我正在使用Spring Batch创建Java批处理作业,我想加密一些属性,比如数据库验证密码。 Jasypt似乎是最推荐的解决方案,http://www.jasypt.org/有很好的文档。
但是,当我在批处理程序中使用它时,我收到错误:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.jasypt.org/schema/encryption]
Offending resource: class path resource [thisjob-context.xml]
有没有其他人看到并解决了这条消息?或者,是否有人有任何其他推荐的方法来加密/解密Spring Batch中的属性?