mybatis spring mvc application, getting Invalid bound statement (not found)

后端 未结 17 2321
猫巷女王i
猫巷女王i 2020-12-09 17:04

this is my first mybatis spring mvc application using spring 3.2.4, mybatis-spring-1.2.1

When i try to call my webservice i get the error::

org.spri         


        
17条回答
  •  猫巷女王i
    2020-12-09 17:21

    In my case, using a query in an annotation, i didn't give enough credit to the fact that the XML in the annotation gets interpreted as XML.

    So if you have

    @Select("select * from table where id <> 'blabla'")
    

    The <> is messing up the XML. You need to put it in a CDATA section

    @Select("select * from table where id  ]]> 'blabla'")
    

提交回复
热议问题