首页 > 其他 > 详细

百度云BAE3.0 的ssh构造(本机ssh项目迁移到BAE3.0)

时间:2015-09-12 09:32:17      阅读:319      评论:0      收藏:0      [点我收藏+]

依据百度云的java部署文档进行部署 http://developer.baidu.com/wiki/index.php?title=docs/cplat/bae/java 

做例如以下改动,然后把项目打包成ROOT上传

1.使用Spring时在原来基础上改动application.xml。包含数据库名。username和password

技术分享

技术分享技术分享

 技术分享技术分享

技术分享

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


 


版权声明:本文博主原创文章。博客,未经同意不得转载。

百度云BAE3.0 的ssh构造(本机ssh项目迁移到BAE3.0)

原文:http://www.cnblogs.com/yxwkf/p/4802538.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!