- 博客(0)
- 资源 (10)
空空如也
远程数据导入|更新
--打开远程连接命令,不打开不可以执行
exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
2013-12-03
tomcat启动|退出执行事件
tomcat启动|退出执行事件类:
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpServlet;
public class Test extends HttpServlet implements ServletContextListener {
// 服务器停止时执行该事件
public void contextDestroyed(ServletContextEvent sce) {
DeleteFile();// 删除启动服务器时建立的文件
}
// 服务器启动时执行该事件
public void contextInitialized(ServletContextEvent sce) {
WriteFile();// 添加一个新的文本文件
}
2013-12-03
web开发验证码项目实例文件
char mapTable[] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
'y', 'z', 'A','B','C','D','E','F','G','H','I','J','K','L','M',
'N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
int width=0;
int height=0;
if (width <= 0)
width = 60;
if (height <= 0)
height = 20;
2010-08-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人