ERROR org.springframework.boot.SpringApplication - Application run failed org.yaml.snakeyaml.scanner.ScannerException:
时间: 2023-09-17 10:07:44 浏览: 173
基于Spring Boot的Elasticsearch 1.x-8.x兼容版本设计源码
ERROR org.springframework.boot.SpringApplication - Application run failed org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here in 'reader', line 85, column 15: secretId:xxx 是由于未按照YAML文件的正确格式使用缩进导致的。在原文件中,配置代码如下:
```
tencent:
cloud:
appId: xxx
secretId: xxx
secretKey: xxx
region: xxx
bucket: xxx
```
可以看到,在appId往后的代码中没有与之并列缩进,所以报错。正确的修改后的代码应该是:
```
tencent:
cloud:
appId: xxx
secretId: xxx
secretKey: xxx
region: xxx
bucket: xxx
```
这样就能避免报错了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [ERROR org.springframework.boot.SpringApplication - Application run failed org.yaml.snakeyaml.scanner](https://blog.csdn.net/weixin_53011698/article/details/129322961)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文