ssh 环境搭建和异常处理
来源:互联网 发布:网络层提供的服务 编辑:程序博客网 时间:2024/05/16 01:31
一 ssh 的环境搭建
1,加入struts2的jar包,从struct2的blank-项目中拷贝
在src目录下加入struct.xml文件从blank-项目中拷贝
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
"http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<package name="struts2" extends="struts-default">
</package>
</struts>
配置web.xml加入struct的监听
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
2通过myepliese添加hibernate
3加入spring(不用生成hibernate.hbm.xml文件,只需要applicationcontent.xm
二,class 'org.springframework.orm.hibernate3.LocalSessionFactoryBean' not found解决方法
解决方法如下:
SSH框架中,调用getHibernateTemplate().find(queryString, value)方法,说找不到该方法
antlr.collections.AST.getLine()异常 需要删除antlr-2.7.2.jar
The prefix "tx" for element "tx:advice" is not bound 错误的说明
加入“xmlns:aop”的命名申明,并在“xsi:schemaLocation”中指定aop配置的schema的地址
配置文件如下:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
这些才是最关键的地方。。后面的配置不变。。。。
- ssh 环境搭建和异常处理
- SSH异常和日志处理方案
- SSH异常和日志处理方案
- SSH异常和日志处理方案
- SSH 搭建异常总结
- SSH中异常处理
- SSH中异常处理
- SSH异常处理方案
- SSH环境开发搭建
- SSH开发环境搭建
- ssh环境搭建
- SSH环境的搭建
- SSH环境搭建
- SSH环境搭建
- 搭建SSH开发环境
- ssh搭建开发环境
- SSH搭建环境
- SSH环境搭建
- 收集介绍如何使用CppUnit的网址
- ORACLE 动态SQL中的多个单引号
- BNU 4184 - 骑士周游列国
- 对java类集的理解
- 强制刷机NOKIA E6-00方法
- ssh 环境搭建和异常处理
- 如何解决Eclipse挂掉的问题
- 为什么匿名内部类参数必须为final类型
- win7中virtualbox虚拟硬盘扩容方法
- C#泛型-使用泛型List
- JAVA类集
- 将Android源码作为一个工程导入到Eclipse
- 安全高性能网站搭建(二)
- android学习之绘图总结