加密解密需要引入的包

  1. <!--加密相关配置-->
  2. <dependency>
  3. <groupId>com.yonyou.pap.caep</groupId>
  4. <artifactId>jasypt-spring-boot</artifactId>
  5. <version>1.0.8-SNAPSHOT</version>
  6. </dependency>
  7. <dependency>
  8. <groupId>com.yonyou.pap.caep</groupId>
  9. <artifactId>jasypt-spring-boot-starter</artifactId>
  10. <version>1.0.8-SNAPSHOT</version>
  11. </dependency>
  12. <dependency>
  13. <groupId>com.yonyou.pap.caep</groupId>
  14. <artifactId>jasypt-mdd</artifactId>
  15. <version>1.0.8-SNAPSHOT</version>
  16. </dependency>
  17. <dependency>
  18. <groupId>com.yonyou.pap.caep</groupId>
  19. <artifactId>jasypt-mdd-cache</artifactId>
  20. <version>1.0.8-SNAPSHOT</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.yonyou.pap.caep</groupId>
  24. <artifactId>jasypt-mdd-dao</artifactId>
  25. <version>1.0.8-SNAPSHOT</version>
  26. </dependency>

配置文件添加加密因子

  1. #配置文件加密因子
  2. jasypt.encryptor.fact1=***
  3. jasypt.encryptor.fact2=***
  4. ucf.usingSqlInjectFilter=false
  5. ucf.usingXssFilter=false

统一包中对xss和sql注入的操作

image.png
image.png

上一小节的配置文件中可以看到,有

  1. ucf.usingSqlInjectFilter=false
  2. ucf.usingXssFilter=false

这两个配置,可以让刘金华那边的替换不生效,因为目前的替换会把hrcm_contract_contract类似这样的billnum替换成乱码的形式,后边直接就报错了。(这公共方案也是TM的醉了,完全不顾实际情况)