Error

[Error][MyBatis]Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.

μ˜€μ„ μ§€β™¬ 2025. 11. 26. 09:36
728x90
λ°˜μ‘ν˜•

πŸ‘‰ XML μ„ μ–Έλ¬Έ(<?xml ... ?>)이 파일 맨 μ²˜μŒμ— μžˆμ§€ μ•Šμ„ λ•Œ λ°œμƒν•œλ‹€.

파일 맨 μ•žμ— 보이지 μ•ŠλŠ” 문자(BOM / 곡백 / μ€„λ°”κΏˆ) 있음 (κ°€μž₯ 흔함)

(곡백)
<?xml version="1.0" encoding="UTF-8"?>

MyBatis XML은 μ§„μ§œ 1λ°”μ΄νŠΈλ„ ν—ˆμš© μ•ˆ 함.

728x90
λ°˜μ‘ν˜•