异常: Could not parse configuration: /hibernate.cfg.xml

Error on line 2 of document  : The processing instruction target matching "[xX][mM][lL]" is not allowed. Nested exception: The processing instruction target matching "[xX][mM][lL]" is not allowed.

今天遇到这样一个错误,原因很简单

<?xml version='1.0' encoding='UTF-8'?>       这段配置没有放在第一行

你可能感兴趣的:(configuration)