mybatis的xml配置文件出现The content of elements must consist of well-formed character data or markup.

来源:互联网 发布:航海家软件免费版 编辑:程序博客网 时间:2024/06/04 01:04
在mabaits的xml配置文件中的sql语句如果出现大于号、小于号是需要转义的,否则便会出现The content of elements must consist of well-formed character data or markup.错误


                     <                                 

                     <

                     小于号                                           

                     &gt;

                     >                                      

                     大于号

                     &amp;

                     &

                     和

                     &apos;

                     ’

                     单引号

                     &quot;

                     ”

                     双引号


阅读全文
0 0