新安装的2023社区版IDEA,启动项目报错。
forest:
interceptors:
- com.gdsz.b2b.frontend.api.Interceptors.ApiInterceptor
org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:215) ~[snakeyaml-2.1.jar:na]
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:173) ~[snakeyaml-2.1.jar:na]
at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:133) ~[snakeyaml-2.1.jar:na]
at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1216) ~[snakeyaml-2.1.jar:na]
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:320) ~[snakeyaml-2.1.jar:na]
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:238) ~[snakeyaml-2.1.jar:na]
at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:669) ~[snakeyaml-2.1.jar:na]
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-03-08T14:39:41.571+08:00 ERROR 16356 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (the profiles local are currently active).
解决办法:
vm增加-Dfile.encoding=utf-8