jjzjj

encryptedProperty

全部标签

java - 如何解密@ConfigurationProperties bean 中使用的属性?

我正在使用SpringBoot1.2.3,我想了解是否可以在将属性值注入(inject)到用@ConfigurationProperties注释的bean之前解密属性值>。假设我在application.properties文件中有以下内容:appprops.encryptedProperty=ENC(ENCRYPTEDVALUE)和这样的示例应用程序:packageaaa.bb.ccc.propertyresearch;importorg.springframework.boot.SpringApplication;importorg.springframework.boot.aut