springmvc+spring+mybatis项目部署中遇到的问题

来源:互联网 发布:linux localdns查看 编辑:程序博客网 时间:2024/05/27 10:43

1、启动项目,发现找不到spring配置的listner类:org.springframework.web.context.ContextLoaderListener。

解决方法:

右击项目->Properties->Deployment Asseml->点击“Add”->Java Build Path Entries->Maven Dependencies。

2、Dynamic Web Module 3.0 requires Java 1.6 or newer错误

解决方法:

<build><plugins>      <plugin>          <groupId>org.apache.maven.plugins</groupId>          <artifactId>maven-compiler-plugin</artifactId>          <version>2.3.2</version>          <configuration>              <source>1.6</source>              <target>1.6</target>          </configuration>      </plugin>  </plugins>   </build>

3、org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

原因:

namespace必须与类名相同,select  id 必须与类中的方法相同。



0 0
原创粉丝点击