您正在查看 "Java" 分类下的文章
2009年08月08日 星期六 上午 08:53
2009年04月22日 星期三 下午 04:14
1、%JAVA_HOME%/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore C:\tomcat.key
2、输入密码(Tomcat的默认值changeit)
3、生成数字证书于C:\tomcat.key
4、修改tomcat目录下的server.xml文件
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
|
2008年11月06日 星期四 下午 01:02
(验证了用户还是还是报javax.mail.AuthenticationFailedException)
实现Authenticator 抽象类的getPasswordAuthentication 方法来验证密码
public class SendEmail extends Authenticator {
private static Log log = LogFactory.getLog(SendEmail.class);
private boolean |
2008年09月13日 星期六 下午 10:56
需要用到WebLogic的jar包
public static String getContentFromOracle(Clob clob) {
/**
* 这是旧方法,下面是新方法,效果应该是一样的。 StringBuffer stringBuffer = new
* StringBuffer(); BufferedReader clobStream = new
* BufferedReader(clob.getCharacterStream());
|
2008年06月06日 星期五 上午 10:55
1. 简介
JNI是Java Native Interface的缩写,它的设计目的是:
The standard Java class library may not support the platform-dependent features needed by your application.
You may already have a library or application written in another programming language and you wish to make it accessible to Java applications
You may want to implement a small portion of time-critical code i |
|
|