Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动态数据源和jasypt加密包冲突,jasypt-spring-boot-starter #672

Open
lazy-mo opened this issue Sep 4, 2024 · 2 comments
Open

Comments

@lazy-mo
Copy link

lazy-mo commented Sep 4, 2024

您好,项目中引用了
<dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>3.0.5</version> </dependency>
并且
使用了
<dependency> <groupId>com.baomidou</groupId> <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <version>3.5.2</version> </dependency>

由于dynamic-datasource只支持加密数据源,并且使用ENC()进行解密,而jasypt可以加密任何属性,并且也使用ENC(*)进行解密,导致dynamic-datasource框架不知道ENC()是自己配的还是jasypt配的,依然进行解密,造成冲突,有没有解决办法或者可以关闭dynamic-datasource的加解密数据源配置的功能

@huayanYu
Copy link
Member

可以重写Event 不使用ENV

@zhangxin-github
Copy link

zhangxin-github commented Oct 16, 2024

jasypt:  
  encryptor:  
    password: sdjsdbshdbfuasd  
    property:  
      prefix: ENCC(
      suffix: )

通过prefix和suffix配置把默认值改掉,是不是可以解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants