项目搭建的问题总结
问题1:jsp中的el表达式没有解析。
在web.xml的web-app节点的版本改成2.4以上,如2.5:
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"></webapp>
问题2: 解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误
一般原因博客上很多,说一下特殊的情况,idea开发时遇到的
在使用IDEA开发时,如果打包时*Mapper.xml没有自动复制到class输出目录的mapper类包下,则需要在pom文件中添加mybatis加载配置文件的配置!
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources> </build>
所有内容皆为个人总结或转载别人的文章,只为学习技术。
若您觉得文章有用,欢迎点赞分享!
若无意对您的文章造成侵权,请您留言,博主看到后会及时处理,谢谢。

浙公网安备 33010602011771号