- 浏览: 60327 次
- 性别:
- 来自: 西安
-
最新评论
-
baifalove:
可以和我讲一下为什么 s标签写成 @s. 吗 是因为版本还是什 ...
struts2 遍历Map -
SEELEN:
很好!
servlet过滤器
文章列表
此为mysql添加记录的最快方式。
1、之所以用到了这种方式,源于一个采集系统。每天的采集记录条数达到7kw条。1条条的加载很慢。加载速度跟不上采集速度。所以,采用了这种方式
进入数据库,敲入:
load data local infile 'd:\loaddata.txt' into table detail fields terminated by ',' LINES terminated by '\n';
''d:\loaddata.txt' -------- 表示 loaddata.txt 的绝对路径
',' ------ ...
新建一个web工程,导入struts包,建立一个jsp页面,比如叫做iBatisTest.jsp
<%@ page contentType="text/html"%>
<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache ...
今天看到别人谈论有关事务的话题,我也简单说两句自己对事务的理解:
Hibernate中:
a、在我们执行一条sql语句:
String sql = insert into a(id ,name) valus(1,'张三');
假于该语句是在数据库中直接执行,那么可以立刻将该条记录插于数据库。
但此时我们是在程序中执行该语句的,精确的将是在java语言中执行该sql语句。
java语言不能直接连接数据库,我们是通过jdbc连接数据库的
1,jdbc连接数据库默认是不立即将数据插入数据库,只用当你commit后才将数据插入数 ...
很多TX在开发过程中会用到showModalDialog,今天我说下自己在开发过程中碰到的问题:
1、如果直接通过showModalDialog弹出窗体,如果关闭子窗口需要刷新父窗口,在子窗体head里面加上<base target="_self"/>
<meta http-equiv="pragma" content="no-cache">,target="_self" 指明不开新的窗口,相对的_blank,是在新窗口打开文件。
2、如果父窗体是showModalDialog ...
interface IFruitFactory{
puhlic Fruit getFruit();
}
class AppleFactory implements IFruitFactory{
public Fruit getFruit(){
//生产苹果
return new Apple();
}
}
IFruitFactory factory = new AppleFactory();
Fruit fruit = new factory.getFruit(); ...
abstract class Fruit{
}
class Apple extends Fruit{
}
class Orange extends Fruit{
}
class FruitFactory{
pulic static Fruit getFruit(String fruitType){
if (“apple” == fruitType){
return new Apple();
} else if (“ ...
我想做一个新闻发布系统,现在想模仿网易写信过程中查词典的功能(就是有道词典),我个人认为那是个插件,但现在没有哪个东西,也不知道哪个怎样用,有谁知道网易有道词典按个是怎么做的,请详细高知啊~~~谢谢~!~