The content of element type "select" must match "(include|trim|where|set|foreach|choose|if|bind)"

----spring初学中碰到的问题

The content of element type "select" must match "(include|trim|where|set|foreach|choose|if|bind)"

在编写mapper.xml文件时在文中使用了判断语句出现select标签头出现错误的问题

当删除该判断语句时着不报错,判断语句如下:

The content of element type "select" must match "(include|trim|where|set|foreach|choose|if|bind)"

当鼠标移动到该select标签头是出错报出

The content of element type "select" must match "(include|trim|where|set|foreach|choose|if|bind)"

出错原因:判断语句中的if是大写,改为小写后不再报这段错误。