最近在学习JNDI,今天整出来一个demo,拿出来大家分享下。先上一个项目结构的截图:1、配置JNDI数据源
首先,修改一下tomcat的配置文件conf/context.xml 在Context属性中加入 其次,项目中的web.xml中加入 DB Connection
jndi-...
分类:
编程语言 时间:
2014-05-10 08:27:06
阅读次数:
451
Neal is very curious about combinatorial problems, and now here comes a problem about words. Knowing that Ray has a photographic memory and this may not trouble him, Neal gives it to Jiejie.
Since Ji...
分类:
其他好文 时间:
2014-05-10 03:48:22
阅读次数:
352
如果你想要在Chrome中进行GWT调试,需要安装“gwt developer plugin
for chrome”,但是普通安装模式下,会提示:This application is not supported on this computer.
Installation has been dis...
分类:
Web程序 时间:
2014-05-10 00:12:24
阅读次数:
507
spfa找正环
XYZZY
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 2344 Accepted Submission(s): 589
Problem Description
It has r...
分类:
其他好文 时间:
2014-05-09 22:57:45
阅读次数:
360
Mr. Pote's shop sells beans now. He has N bags of beans in his warehouse, and he has numbered them with 1, 2, …, N according to their expired dates. The i-th bag contains Wi units of beans. For sellin...
分类:
其他好文 时间:
2014-05-09 22:41:06
阅读次数:
503
ASP获取数据库表名,字段名以及对字段的一些操作
最近,在ASP论坛上看到很多网友问怎么获取数据库表名,字段名以及如何对字段进行删除,增添的操作故写此文。
本人对SQLServer比较熟一些,故以SQLServer为列:
SET Conn=Server.CreateObject("ADODB.Connection")
Conn.Open "Server=IP地址;Provider...
分类:
数据库 时间:
2014-05-09 15:17:00
阅读次数:
464
Path Sum IGiven a binary tree and a sum,
determine if the tree has a root-to-leaf path such that adding up all the values
along the path equals the gi...
分类:
其他好文 时间:
2014-05-09 13:21:59
阅读次数:
320
【Bypassing iPhone Code Signatures】 Starting with
the recent beta releases of the iPhoneOS, Apple has started requiring that all
code on the device is....
分类:
其他好文 时间:
2014-05-09 08:07:25
阅读次数:
437
ORA-28001:thepasswordhasexpired解决方法Oracle提示错误消息ORA-28001:thepasswordhasexpired,是由于Oracle11G的新特性所致,Oracle11G创建用户时缺省密码过期限制是180天(即6个月),如果超过180天用户密码未做修改则该用户无法登录。Oracle公司是为了数据库的安全性默认在..
分类:
其他好文 时间:
2014-05-09 07:03:57
阅读次数:
369
package com.ctl.util;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedS...
分类:
数据库 时间:
2014-05-09 06:36:15
阅读次数:
384