今天阿易测试SMS程序.所以必须设置代理给CONNECTION(公司代理上网).
System.getProperties().put( "proxySet", "true" );
System.getProperties().put( "proxyHost", "代理服务器IP" );
System.getProperties().put( "proxyPort", "代理服务器端口" );
String pass=(new sun.misc.BASE64Encoder()).encode( "代理用户名:代理密码".getBytes()); //base64 加密
URL objURL = ...
- 10:34
- 浏览 (102)
- 评论 (0)
- 分类: java_normal
为什么要使用JBOSS为我们提供的安全体系?
常规的做法是,我们在servlet中取得用户登录信息(用户名和密码),去数据库验证通过后将些信息保存在session中,以便在此用户的整个会话期间能进行相应的权限控制。J2EE架构体系为我们提供了安全、事务和线程等诸多的便利,让我们能专注于业务逻辑的实现。为什么我们在开发J2EE应用时还要采用传统的安全体系呢?
JBossSX框架为我们提供了灵活的安全架构,基本上可以满足我们绝大部分的安全需要(请参考本站《关于用户权限的联想》一文)。
用JBossSX的实现用户认证
我们知道,servlet提供了四种安全认证方式:HTTP Basic Aut ...
- 15:57
- 浏览 (162)
- 评论 (0)
- 分类: Web-server
I hope you find these excerpts of VisiBoneJavaScript referencesvery useful.Contents: Number String Number <–> String Boolean Date Math Array Function logic & ...
- 15:24
- 浏览 (164)
- 评论 (0)
- 分类: javascript
1. 编辑
2. 作用域 功能 快捷键
3. 全局 查找并替换 Ctrl+F
4. 文本编辑器 查找上一个 Ctrl+Shift+K
5. 文本编辑器 查找下一个 Ctrl+K
6. 全局 撤销 Ctrl+Z
7. 全局 复制 Ctrl+C
8. 全局 ...
- 17:08
- 浏览 (207)
- 评论 (0)
- 分类: java_other
http://grinder.sourceforge.net/index.html
The Grinder is a JavaTM load-testing framework. It is freely available under a BSD-style open-source license.
The Grinder makes it easy to orchestrate the activities of a test script in many processes across many machines, using a graphical console applica ...
- 16:58
- 浏览 (176)
- 评论 (0)
- 分类: code testing
http://grinder.sourceforge.net/index.html
The Grinder is a JavaTM load-testing framework. It is freely available under a BSD-style open-source license.
The Grinder makes it easy to orchestrate the activities of a test script in many processes across many machines, using a graphical console applica ...
- 16:57
- 浏览 (140)
- 评论 (0)
.....
CaptureDeviceInfo cdinfo=CaptureDeviceManager.getDevice("vfw:Microsoft WDM Image Capture (Win32):0");
......
//得到图像
public   ...
- 10:22
- 浏览 (209)
- 评论 (0)
- 分类: java_other
其实很简章:
File f1=new File("D:\\muisc\\woshizhende.mp3"); //得到一个MP3文件
try {
Player player = Manager.createRealizedPlayer(f1.toURL());
player.prefetch();//预读文件
...
- 10:18
- 浏览 (379)
- 评论 (1)
- 分类: java_other
http://www.kpdus.com/jad.html 官方最新版本,支持jdk1.6
Java下的一个简单易用的反编译工具jad, 可以很方便的将.class反编译为.Java. 点击下载
一、基本用法
Usage:jad [option(s)]
直接输入类文件名,且支持通配符,如下所示。
c:\Java\>jad example1.class
c:\Java\>jad *.class
结果是将example1.class反编译为example1.jad。将example1.jad改为example1.Java即得源文件。
二、Option -o ...
- 10:14
- 浏览 (269)
- 评论 (0)
- 分类: java_other
Mysql 百万级数据优化资料
一、我们可以且应该优化什么?
硬件
操作系统/软件库
SQL服务器(设置和查询)
应用编程接口(API)
应用程序
--------------------------------------------------------------------------------
二、优化硬件
如果你需要庞大的数据库表(>2G),你应该考虑使用64位的硬件结构,像Alpha、Sparc或即将推出的IA64。因为MySQL内部使用大量64位的整数,64位的CPU将提供更好的性能。
对大数据库,优化的次序一般是RAM、快速硬 ...
- 10:56
- 浏览 (318)
- 评论 (0)
- 分类: java_other







评论排行榜