Host
Host是Context的父容器。如果想在一个tomcat上部署多个context就需要使用Host了。上下文容器的父容器是主机,但是可能有一些其它实现,没有必要的时候也可以忽略。不过在实践中,即使是一个Context,我们也使用了Host,为什么?后面我们再说。
Host是个接口,里面有个map方法比较重要
/**
* Return the Context th...
分类:
其他好文 时间:
2014-11-27 12:45:07
阅读次数:
208
一使用SELECT子句进行多表查询SELECT 字段名 FROM 表1,表2 … WHERE 表1.字段 = 表2.字段 AND 其它查询条件SELECT a.id,a.name,a.address,a.date,b.math,b.english,b.chinese FROM tb_demo065_...
分类:
数据库 时间:
2014-11-27 12:23:55
阅读次数:
206
在Mac下Qt Creator无法输入中文,就算是切换为了中文输入法也无济于事。于是找了一下设置。在【偏好设置】中,有一个【语言】的下拉框,将其设置为Chinese(China),然后保存,重启就可以了。如图所示...
分类:
系统相关 时间:
2014-11-27 01:40:47
阅读次数:
222
在C#中,有时候我们需要读取枚举值的描述属性,也就是说这个枚举值代表了什么意思。比如本文中枚举值 Chinese ,我们希望知道它代表意思的说明(即“中文”)。有下面的枚举:123456publicenumEnumLanugage{[System.ComponentModel.Description...
PowerDesigner16.5 生成SQL脚本执行出错,collate chinese_prc_ci_as点DataBase-edit current dbms —— 左边Script - Objects - Column - Add ,左边 Value输入框 把一下代码粘贴进去,保存即可。如果...
分类:
数据库 时间:
2014-11-26 22:17:15
阅读次数:
268
介绍一些内核给我们提供的用于在内核中创建线程的内核接口函数。其实在linux内核中,无论是进程还是线程,都是用structtask_struct结构体来表示的。用于创建一个内核线程的函数:structtask_struct*kthread_create(int(*threadfn)(void*data),void*data,constcharnamefmt[]);th..
分类:
编程语言 时间:
2014-11-26 16:48:13
阅读次数:
164
先放效果图,如此实用的功能是不是迫不及待的要添加到自己的网店中了呢牵涉到的修改文件(default模板为例)/themes/default/style.css/themes/default/goods.dwt(只需修改这两个文件)修改步骤:一:控制样式【ecshop是您自己的模板名称】1.打开/th...
分类:
其他好文 时间:
2014-11-26 14:05:58
阅读次数:
202
Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from th...
分类:
其他好文 时间:
2014-11-26 13:37:24
阅读次数:
123
前言: 朋友说简单的查询导致Transaction timed out: deadline问题,怀疑是数据库表锁了,1,应用故障描述Deadline问题: --- The error occurred in META-INF/ibatis/ITEM_sqlmap.xml. --- The error occurred while executing query. --- Check th...
分类:
数据库 时间:
2014-11-26 01:29:20
阅读次数:
538
private void txt_Chinese_TextChanged(object sender, EventArgs e) { txt_PinYIn.Text = //调用拼音类的GetABC方法得到拼音字符串 new Pin...
分类:
其他好文 时间:
2014-11-25 16:19:11
阅读次数:
285