style: 格式化 & 注释

This commit is contained in:
xiongxiaoyang 2023-04-04 01:18:54 +08:00
parent 35c750d4ac
commit 434062392c
2 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public class EsConfig {
* fix `sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
* unable to find valid certification path to requested target`
*/
@ConditionalOnProperty(value = "spring.elasticsearch.ssl.verification-mode",havingValue = "none")
@ConditionalOnProperty(value = "spring.elasticsearch.ssl.verification-mode", havingValue = "none")
@Bean
RestClient elasticsearchRestClient(RestClientBuilder restClientBuilder,
ObjectProvider<RestClientBuilderCustomizer> builderCustomizers) {

View File

@ -9,6 +9,7 @@ spring:
- https://127.0.0.1:9200
username: elastic
password: Fy2JWjJ1hcO2mi1USFLR
# 设置 ssl 的认证模式,如果该配置项为 none ,说明不需要认证,信任所有的 ssl 证书。
# ssl:
# verification-mode: none