1 Tomcat配置JNDI资源
JNDI(Java Naming and Directory Interface),Java命名和目录接口。JNDI的作用就是:在服务器上配置资源,然后通过统一的方式来获取配置的资源。
我们这里要配置的资源当然是连接池了,这样项目中就可以通过统一的方式来获取连接池对象了。
配置JNDI资源需要到元素中配置子元素:
name:指定资源的名称,这个...
分类:
编程语言 时间:
2015-01-12 21:00:12
阅读次数:
183
转载地址:http://www.cnblogs.com/pipelone/archive/2009/04/17/1437879.html在Linux中执行.sh脚本,异常/bin/sh^M: bad interpreter: No such file or directory。分析:这是不同系统编码...
分类:
系统相关 时间:
2015-01-12 12:56:59
阅读次数:
182
//递归删除文件夹及子文件C#代码: public void DeleteFolder(string dir) { if (Directory.Exists(dir)) //如果存在这个文件夹删除之 { foreach (string d in Directory.GetFileS...
1 *********************************************************************2 ERROR: dbpath (\data\db\) does not exist.3 Create this directory or give ex.....
分类:
数据库 时间:
2015-01-11 16:02:47
阅读次数:
214
smtp auth success,other not sureservice saslauthd start[root@localhost ~]# cat /etc/sysconfig/saslauthd# Directory in which to place saslauthd's liste...
分类:
其他好文 时间:
2015-01-10 19:40:24
阅读次数:
378
说明:
本资料所有问题及代码均摘选自matlab中文论坛(www.ilovematlab.cn),主要供自己学习使用。
非常感谢论坛的所有提出以及解答问题的会员。
目 录
1、GUI新手之——教你读懂GUI的M文件... 10
2、GUI程序中改变current directory...
分类:
其他好文 时间:
2015-01-10 16:41:35
阅读次数:
699
对C++和VS2010非常不熟悉,但是无奈赶着项目,只能看了点基础就上手,然后就碰到这个问题了。 原因分析: http://bbs.csdn.net/topics/340191697?page=1 编译器一般都是以文件为单位进行编译,如果修改了工程中的一个文件,那么将导致所有文件都要从新编译...
分类:
其他好文 时间:
2015-01-10 16:34:26
阅读次数:
169
FSLineChartA line chart library for iOS.一个iOS的线状图控件。Installing FSLineChart - 安装Add the contents of the FSLineChart project to your directory or simply...
分类:
其他好文 时间:
2015-01-10 01:00:45
阅读次数:
292
安装完 bugzilla 之后 访问 url/bugzilla 之后没有出现登录界面,而是出现了index.cgi代码。 解决办法: ?You can see if the directory /etc/apache2/mods-enabled/ has a symlink?cgi.load. If there is no ...
分类:
系统相关 时间:
2015-01-09 23:53:33
阅读次数:
444
在ruby中我们要实现遍历指定目录的方法,网上的方法也非常之多,我们可以拿来参考参考,如下边的traverse.rb文件内容所示:#!/usr/bin/ruby
deftraverse(filepath)
ifFile.directory?(filepath)
puts"Dirs:"+filepath
Dir.foreach(filepath)do|filename|
iffilename!="."andfil..
分类:
其他好文 时间:
2015-01-09 19:32:32
阅读次数:
133