java.lang.IllegalStateException: Failed to load property source from'file:/F:/java/SpringCloud/provider-service/target/classes/application.yml'(classpath:/application.yml)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:564)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadForFileExtension(ConfigFileApplicationListener.java:501)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:471)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$null$7(ConfigFileApplicationListener.java:450)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at java.lang.Iterable.forEach(Iterable.java:75)~[na:1.8.0_271]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$8(ConfigFileApplicationListener.java:450)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at java.lang.Iterable.forEach(Iterable.java:75)~[na:1.8.0_271]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:447)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$0(ConfigFileApplicationListener.java:350)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.FilteredPropertySource.apply(FilteredPropertySource.java:54)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:338)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:229)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:213)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:203)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:191)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)~[spring-context-5.2.13.RELEASE.jar:5.2.13.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)~[spring-context-5.2.13.RELEASE.jar:5.2.13.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)~[spring-context-5.2.13.RELEASE.jar:5.2.13.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)~[spring-context-5.2.13.RELEASE.jar:5.2.13.RELEASE]
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:80)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:345)[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at com.szz.ProviderServiceApplication.main(ProviderServiceApplication.java:18)[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)~[na:1.8.0_271]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)~[na:1.8.0_271]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)~[na:1.8.0_271]
at java.lang.reflect.Method.invoke(Method.java:498)~[na:1.8.0_271]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)[spring-boot-devtools-2.3.9.RELEASE.jar:2.3.9.RELEASE]
Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length =1
at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:218)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:176)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:171)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:126)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1177)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:287)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:195)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.composer.Composer.checkNode(Composer.java:82)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.checkData(BaseConstructor.java:123)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.Yaml$1.hasNext(Yaml.java:489)~[snakeyaml-1.26.jar:na]
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:200)~[spring-beans-5.2.13.RELEASE.jar:5.2.13.RELEASE]
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:164)~[spring-beans-5.2.13.RELEASE.jar:5.2.13.RELEASE]
at org.springframework.boot.env.OriginTrackedYamlLoader.load(OriginTrackedYamlLoader.java:82)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:50)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadDocuments(ConfigFileApplicationListener.java:632)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:534)~[spring-boot-2.3.9.RELEASE.jar:2.3.9.RELEASE]...30 common frames omitted
Caused by: java.nio.charset.MalformedInputException: Input length =1
at java.nio.charset.CoderResult.throwException(CoderResult.java:281)~[na:1.8.0_271]
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)~[na:1.8.0_271]
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)~[na:1.8.0_271]
at java.io.InputStreamReader.read(InputStreamReader.java:184)~[na:1.8.0_271]
at org.yaml.snakeyaml.reader.UnicodeReader.read(UnicodeReader.java:125)~[snakeyaml-1.26.jar:na]
at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:183)~[snakeyaml-1.26.jar:na]...48 common frames omitted
application.yml文件如下:错误信息如下:java.lang.IllegalStateException: Failed to load property source from 'file:/F:/java/SpringCloud/provider-service/target/classes/application.yml' (classpath:/application.yml) at org.springframework.boot.context.config.Config.