Windows
gradlew.bat bootRun --args="--spring.profiles.active=dev,win"
报错内容:
Caused by: java.nio.charset.MalformedInputException: Input length = 1
at java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:274) ~[na:na]
at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[na:na]
at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188) ~[na:na]
at java.base/java.io.InputStreamReader.read(InputStreamReader.java:177) ~[na:na]
at org.yaml.snakeyaml.reader.UnicodeReader.read(UnicodeReader.java:118) ~[snakeyaml-2.3.jar:na]
at java.base/java.io.Reader.read(Reader.java:250) ~[na:na]
at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:178) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:171) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:166) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:121) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1204) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:320) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:238) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:210) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:152) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.composer.Composer.checkNode(Composer.java:119) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.constructor.BaseConstructor.checkData(BaseConstructor.java:149) ~[snakeyaml-2.3.jar:na]
at org.yaml.snakeyaml.Yaml$1.hasNext(Yaml.java:524) ~[snakeyaml-2.3.jar:na]
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:203) ~[spring-beans-6.2.0-RC3.jar:6.2.0-RC3]
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:169) ~[spring-beans-6.2.0-RC3.jar:6.2.0-RC3]
at run.halo.app.infra.utils.YamlUnstructuredLoader.load(YamlUnstructuredLoader.java:44) ~[main/:na]
at run.halo.app.security.preauth.SystemSetupEndpoint.lambda$loadPresetExtensions$12(SystemSetupEndpoint.java:294) ~[main/:na]
at reactor.core.publisher.MonoCallable.call(MonoCallable.java:72) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:128) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.MonoFlatMapMany.subscribeOrReturn(MonoFlatMapMany.java:49) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxFromMonoOperator.subscribe(FluxFromMonoOperator.java:77) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:842) ~[na:na]
好像是没有使用UTF-8进行文件识别,但是修改后仍然报错,可能修改没有生效,请问应该如何解决