IDEA启动报错java.nio.charset.MalformedInputException: Input length=2

IDEA启动报错java.nio.charset.MalformedInputException: Input length=2

问题

原本系统运行好好得,一段时间没打开,再次打开重启

IDEA启动报错java.nio.charset.MalformedInputException: Input length=2。

解决

百度了

https://blog.csdn.net/qq_50954361/article/details/128049763

​java.nio.charset.MalformedInputException: Input length=2​ 这篇文章这么说

SpringBoot启动时报错:​java.nio.charset.MalformedInputException: Input length=2​

报错原因:项目编码问题,必须统一编码,要么GBK,要么UTF-8

解决办法:统一编码即可

然后我本地idea照着统一了编码重启还是报错

最后我直接rebulid之后就能运行成功了

后记

万事不决,rebuild

相关推荐
heimeiyingwang9 分钟前
【架构实战】微服务架构核心概念与演进
java·微服务·架构
Memory_荒年11 分钟前
当餐厅后厨也懂分布式:SpringBoot中的重试、限流、熔断与幂等的“四重奏”
java·后端·spring
我是人✓31 分钟前
IDEA(2017.3 x64)的安装及使用
java·ide·intellij-idea
静心观复37 分钟前
使用 new 关键字和 Java 反射创建对象的区别
java·开发语言
2601_954023661 小时前
Beyond the Hype: Deconstructing the 2025 High-Performance Stack for Agencies
java·开发语言·算法·seo·wordpress·gpl
ms_27_data_develop1 小时前
Java——集合
java·开发语言
编码忘我1 小时前
java策略模式实战之优惠券
java·后端
心勤则明1 小时前
用 SpringAIAlibab 让高频问题实现毫秒级响应
java·人工智能·spring
anzhxu1 小时前
SpringBoot 3.x 整合swagger
java·spring boot·后端
gechunlian881 小时前
Spring Security 官网文档学习
java·学习·spring