Skip to content

Commit 6f8385c

Browse files
committed
docs: polishing
1 parent 9c01ed7 commit 6f8385c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ If you want to use Dotenvx to protect some fields with JSON output, you can use
102102
@Configuration
103103
public 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 {
114114
For encryption, make sure the field value with `private:` prefix.
115115
For 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

0 commit comments

Comments
 (0)