今天做一个上传文件的功能改完配置文件后启动项目报错如下:
org.yaml.snakeyaml.scanner.ScannerException: while scanning an alias in ‘reader’
于是我就查了一下在这里记录一下,原来是配置文件值不能但是填写 *
错误实例:
spring:
allowPrefix: *
durationSeconds: 1800
baseUrl: https://*****.ap-beijing.myqcloud.com/
正确实例:
tencent:
allowPrefix: '*'
durationSeconds: 1800
baseUrl: https://*****.ap-beijing.myqcloud.com/
修改后就正常启动了