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

后端 未结 17 2328
猫巷女王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条回答
  •  难免孤独
    2020-12-09 17:08

    (There could be many reasons, my case is a bit rare & weird, it's hard to discover, so I'd like to add an answer here, just in case someone did the same thing as me.)

    In my case, then reason is in IDEA, when create multi-level package for mapper file I input mybatis.mapper, which only create a single dir but with name contains ..

    While I should actually input mybatis/mapper to create multi-level dir at once.

    In these 2 cases, the dir are shown the same as mybatis.mapper in the project view of IDEA, so it took me quiet a while to figure out why ...

提交回复
热议问题