IDEA启动项目读取nacos乱码导致启动失败

news/2024/7/16 9:13:40 标签: intellij-idea, java, ide

新安装的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


http://www.niftyadmin.cn/n/5414559.html

相关文章

【3GPP】【核心网】【5G】5G核心网协议解析(二)(超详细)

5G UE 附着过程 UE AMF ----------------- 注册请求(Registration Request) ----------------------> <--------------- 鉴权请求(Authentication Request) ------…

未来已来!AI大模型引领科技革命

未来已来&#xff01;AI大模型正以惊人的速度引领着科技革命。随着科技的发展&#xff0c;人工智能在各个领域展现出了非凡的能力和潜力&#xff0c;大模型更是成为了科技领域的明星。从自然语言处理到图像识别&#xff0c;从智能推荐到语音识别&#xff0c;大模型的应用正在改…

全面解讀HTTP代理API

HTTP代理是一種特殊的網路服務&#xff0c;它可以讓你的網路請求通過代理伺服器發送。在這個過程中&#xff0c;代理伺服器會代替你的設備向互聯網發送請求&#xff0c;並將獲取的回應返回給你的設備。這樣&#xff0c;你的設備就好像變成了代理伺服器&#xff0c;看起來就像是…

Camunda7历史记录级别配置和历史数据清理

camunda工作流引擎中有好多以ACT_HI_*开始的数据库表&#xff0c;HI代表历史。这些表包含历史数据&#xff0c;如过去的流程实例、变量、任务等。camunda详细数据库表结构介绍见&#xff1a;https://blog.csdn.net/wxz258/article/details/136442339。 camunda流程引擎内部有历…

php-webdriver 通过队列的方式实现工作流

最近需要批量操作某个古老的后台&#xff0c;但是流程非常复杂&#xff0c;通过 php-webdriver/webdriver 写了个基于队列的方式实现工作流&#xff1b; 可以帮你实现web ui 测试&#xff0c; 自动登录站点&#xff0c;自动识别验证码&#xff08;不复杂的那种&#xff09;&am…

Flink实时数仓同步:切片表实战详解

一、背景 在大数据领域&#xff0c;初始阶段业务数据通常被存储于关系型数据库&#xff0c;如MySQL。然而&#xff0c;为满足日常分析和报表等需求&#xff0c;大数据平台采用多种同步方式&#xff0c;以适应这些业务数据的不同存储需求。 一项常见需求是&#xff0c;业务使用…

python异常机制

当代码出现异常后底下代码都不会被执行了&#xff0c;也就是程序崩溃了。当然能避免异常的话尽量避免但是有的时候这个是没有办法避免的。 异常处理 &#xff08;注&#xff1a;异常处理是从上往下处理&#xff0c;所以编写代码时要注意&#xff09; 语法 try:可能出现异常…

Golang 写日志到文件

package mainimport ("log""os""time" )func main() {printLog("auto", "报警内容AA") }func printLog(filename string, content string) {t : time.Now().Format(time.DateOnly)file : filename "." t "…