Invalid bound statement (not found): com.xxxx.dao.other.LoginDao.getUser"

原来是能正常运行的,后想把登录相关的调整一下目录,对应登录的文件都调整到了other下边,启动服务,请求时报错:

Invalid bound statement (not found): com.xxxx.dao.other.LoginDao.getUser"

网上找到是因为自动扫描没有扫描到所致,查看applicationContext.xml

        <property name="mapperLocations" >
            <array>
                <value>classpath:mapper/*.xml</value>
                <value>classpath:mapper/**/*.xml</value>
            </array>
        </property>

增加了此条: <value>classpath:mapper/**/*.xml</value>

因为位置调整时我是由mapper移到了 mapper/other下

 

posted @ 2019-07-30 14:26  唯起  阅读(670)  评论(0编辑  收藏  举报