Commit b8e666eb by 朱海

[chg]安全修复

1 parent 3dd43c87
...@@ -99,6 +99,11 @@ ...@@ -99,6 +99,11 @@
<groupId>org.elasticsearch.client</groupId> <groupId>org.elasticsearch.client</groupId>
<version>8.15.5</version> <version>8.15.5</version>
</dependency> </dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>3.0.5</version>
</dependency>
<dependency> <dependency>
<groupId>com.viontech.keliu</groupId> <groupId>com.viontech.keliu</groupId>
......
package com.viontech.match; package com.viontech.match;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication @SpringBootApplication
@EnableEncryptableProperties
@ComponentScan(basePackages = {"com.viontech"})public class MatchApp { @ComponentScan(basePackages = {"com.viontech"})public class MatchApp {
public static void main(String[] args) { public static void main(String[] args) {
......
...@@ -6,3 +6,7 @@ spring: ...@@ -6,3 +6,7 @@ spring:
date-format: yyyy-MM-dd HH:mm:ss date-format: yyyy-MM-dd HH:mm:ss
default-property-inclusion: non_null default-property-inclusion: non_null
jasypt:
encryptor:
password: ${JASYPT_ENCRYPTOR_PASSWORD}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!