
JAVA
文章平均质量分 66
蒋一个故事
Everybody wants something.
展开
-
SSH框架搭建过程---之SSH-配置文件实例(6)
SSH配置文件实例感觉还是有点浑浑噩噩哈,先看一下我们配置完成的配置文件,思路也就清晰啦。1. web.xmlxmlversion="1.0"encoding="UTF-8"?>web-appxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml原创 2014-07-22 17:40:56 · 717 阅读 · 0 评论 -
SSH框架搭建过程---之Struts框架的使用(3)
Struts框架的使用1.编写Action类2.Struts配置1) 配置Struts核心过滤器2) 配置Action映射1. 导包a) 注意:这个包是在Struts2与Spring整合的时候用的,单用Struts2的时候一定不能导这个包。2. 编写Action类package cn.edu.bucea.action; import com.ope原创 2014-07-22 17:31:30 · 671 阅读 · 0 评论 -
SSH框架搭建过程---之Spring-Hibernate整合(5)
Spring-Hibernate整合整合后的结构具有以下特点:l Spring直接接管理对SessionFactory对象的管理,不再需要编写获取SessionFactory对象的实用工具类。l 将Hibernate配置信息直接整合到Spring的SessionFactory Bean 的定义中,不再需要Hibernate配置文件。l Spring使用HibernateTem原创 2014-07-22 17:37:22 · 751 阅读 · 0 评论 -
SSH框架搭建过程---之Spring框架的使用(2)
Spring框架的使用1. 导包2. bean.xml<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframe原创 2014-07-22 17:26:06 · 729 阅读 · 0 评论 -
SSH框架搭建过程---之Hibernate框架的使用(1)
Hibernate 框架的使用0.导包1. hibernate.cfg.xml "-//Hibernate/HibernateConfiguration DTD 3.0//EN" "http://hibernate.sourcefo原创 2014-07-22 17:11:21 · 1172 阅读 · 0 评论 -
SSH框架搭建过程---之Struts整合Spring框架(4)
truts整合Spring1. 导入整合用的jar包2. 配置web.xmla) 指定Spring配置文件位置 contextConfigLocation /WEB-INF/ApplicationContext.xml b) 配置监听器 org.springframework.web.con原创 2014-07-22 17:31:44 · 877 阅读 · 0 评论 -
Java忽略转义字符,原格式输出
忽略转义字符import org.apache.commons.lang.StringEscapeUtils;前: String str = “\t”; System.out.println(“G”+str.charAt(0) +”G”); 结果: G\G后: str = StringEscapeUtils.unescapeJava(str); System.out.println(“G原创 2015-11-03 10:35:33 · 5156 阅读 · 0 评论