成功解决java.nio.charset.MalformedInputException: Input length = 1

项目启动时报错如下

Connected to the target VM, address: '127.0.0.1:5309', transport: 'socket'
18:01:22.607 [main] ERROR o.s.b.SpringApplication - [reportFailure,843] - Application run failed
org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
	at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:218)
	at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:176)
	at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:171)
	at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:126)
	at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1198)
	at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:308)

解决办法

成功解决java.nio.charset.MalformedInputException: Input length = 1_第1张图片

然后再启动项目问题解决

你可能感兴趣的:(java,nio,开发语言)