项目搭建的问题总结

问题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>

 

 

 


posted @ 2018-08-25 18:14  现世安稳。  阅读(192)  评论(0编辑  收藏  举报