异常: 3 字节的 UTF-8 序列的字节 3 无效的解决方案

时间:2025-03-06 07:43:08
: Failed to load ApplicationContext
	at (:124)
	at (:83)
	at (:117)
	at (:83)
	at (:230)
	at .junit4.(:228)
	at .junit4.SpringJUnit4ClassRunner$(:287)
	at (:12)
	at .junit4.(:289)
	at .junit4.(:247)
	at .junit4.(:94)
	at $(:290)
	at $(:71)
	at (:288)
	at $000(:58)
	at $(:268)
	at .(:61)
	at .(:70)
	at (:363)
	at .junit4.(:191)
	at ..(:86)
	at (:38)
	at (:459)
	at (:678)
	at (:382)
	at (:192)
Caused by: : IOException parsing XML document from class path resource []; nested exception is : 3 字节的 UTF-8 序列的字节 3 无效。
	at (:410)
	at (:336)
	at (:304)
	at (:181)
	at (:217)
	at (:188)
	at (:252)
	at (:257)
	at (:124)
	at (:60)
	at (:106)
	at (:249)
	at (:98)
	at (:116)
	... 25 more
Caused by: : 3 字节的 UTF-8 序列的字节 3 无效。
	at .(Unknown Source)
	at .(Unknown Source)
	at (Unknown Source)
	at (Unknown Source)
	at (Unknown Source)
	at (Unknown Source)
	at $(Unknown Source)
	at (Unknown Source)
	at (Unknown Source)
	at (Unknown Source)
	at .(Unknown Source)
	at .(Unknown Source)
	at (Unknown Source)
	at (Unknown Source)
	at (Unknown Source)
	at (:76)
	at (:429)
	at (:391)
	... 38 more


在文件中加上

<properties>
		<!-- 设置默认编码 -->
		<>UTF-8</>
	</properties>

然后alt+f5重写编译