zoukankan      html  css  js  c++  java
  • 项目搭建的问题总结

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


  • 相关阅读:
    MyBatis进阶(一)
    git命令整理
    今天的任务--git练习
    深入浅出JavaScript(一)
    数据结构_树_二叉搜索树
    网络_体系结构
    数据结构_树
    算法_五大经典搜索算法
    SpringMVC入门
    spring 线程异步执行
  • 原文地址:https://www.cnblogs.com/hero123/p/9534939.html
Copyright © 2011-2022 走看看