根据百度云的java部署文档进行部署 http://developer.baidu.com/wiki/index.php?title=docs/cplat/bae/java
做如下修改,然后把项目打包成ROOT上传
1.使用Spring时在原来基础上修改application.xml,包括数据库名,用户名和密码
2.修改hibernate的所有.hbm.xml文件中的catalog,例如
,把catalog属性修改为你的数据库名
http://blog.csdn.net/df1012890048/article/details/25540851
3.如果jsp页面中有使用到<%@ taglib uri="http://java.sun.com/jsp/jstl/core"prefix="c" %>
可能会出现异常:org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
要导入jstl.jar和standard.jar包,如果还是不行的就要手动导入tld文件了,方法如下:
把jstl.jar解压其中的META-INF文件夹,复制c.tld 、x.tld、fmt.tld 、sql.tld到 项目的WEB-INF文件夹下
然后再在web.xml中加入这些内容:
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>
</jsp-config>
转载注明地址,谢谢:http://blog.csdn.net/df1012890048/article/details/25540851