File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ If you want to use Dotenvx to protect some fields with JSON output, you can use
102102@Configuration
103103public class DotenvxJacksonConfig {
104104 @Bean
105- public SimpleModule dotenvxJacksonModule (@Value (" ${dotenv .public.key}" ) String publicKey , @Value (" ${dotenvx.private.key}" ) String privateKey ) {
105+ public SimpleModule dotenvxJacksonModule (@Value (" ${dotenvx .public.key}" ) String publicKey , @Value (" ${dotenvx.private.key}" ) String privateKey ) {
106106 SimpleModule simpleModule = new SimpleModule ();
107107 simpleModule. addSerializer(new DotenvxGlobalJsonSerializer (publicKey));
108108 simpleModule. addDeserializer(String . class, new DotenvxGlobalJsonDeserializer (privateKey));
@@ -114,6 +114,8 @@ public class DotenvxJacksonConfig {
114114For encryption, make sure the field value with ` private: ` prefix.
115115For decryption, make sure the field value with ` encrypted: ` prefix.
116116
117+ ** Tips** : please use ` dotenvx init --stdout ` to generate a new key pair for this case. Don't use app config key pair.
118+
117119# Credits
118120
119121* jasypt-spring-boot: https://github.com/ulisesbocchio/jasypt-spring-boot
You can’t perform that action at this time.
0 commit comments