优化代码

pull/9/MERGE
smallbun 2023-02-09 16:10:33 +08:00
parent c8792c999c
commit ceb36d5cd8
3 changed files with 5 additions and 15 deletions

View File

@ -38,10 +38,5 @@
<artifactId>eiam-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-x-content</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -60,13 +60,13 @@ import okhttp3.CertificatePinner;
* Created by support@topiam.cn on 2022/5/18 23:38
*/
public class CertUtils {
private static final Logger logger = LoggerFactory.getLogger(CertUtils.class);
private static final Logger logger = LoggerFactory.getLogger(CertUtils.class);
private static final String LINE_SEPARATOR = System.getProperty("line.separator");
public static final String BEGIN_CERT = "-----BEGIN CERTIFICATE-----" + LINE_SEPARATOR;
public static final String END_CERT = "-----END CERTIFICATE-----";
public static final String BEGIN_KEY = "-----BEGIN RSA PRIVATE KEY-----" + LINE_SEPARATOR;
public static final String END_KEY = "-----END RSA PRIVATE KEY-----";
public static final String BEGIN_CERT = "-----BEGIN CERTIFICATE-----" + LINE_SEPARATOR;
public static final String END_CERT = "-----END CERTIFICATE-----";
public static final String BEGIN_KEY = "-----BEGIN RSA PRIVATE KEY-----" + LINE_SEPARATOR;
public static final String END_KEY = "-----END RSA PRIVATE KEY-----";
static {
Security.addProvider(new BouncyCastleProvider());
}

View File

@ -380,11 +380,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>8.11.1</version>
</dependency>
<!--spring data jpa-->
<dependency>
<groupId>org.springframework.boot</groupId>