锘??xml version="1.0" encoding="utf-8" standalone="yes"?>第一视频专区在线,精品国产91亚洲一区二区三区www,久久狠狠亚洲综合http://www.aygfsteel.com/linlinyu/category/27563.htmllinlinyuzh-cnWed, 21 May 2008 15:58:32 GMTWed, 21 May 2008 15:58:32 GMT60- jboss sslhttp://www.aygfsteel.com/linlinyu/articles/201958.htmllinlin yulinlin yuWed, 21 May 2008 08:45:00 GMThttp://www.aygfsteel.com/linlinyu/articles/201958.htmlhttp://www.aygfsteel.com/linlinyu/comments/201958.htmlhttp://www.aygfsteel.com/linlinyu/articles/201958.html#Feedback0http://www.aygfsteel.com/linlinyu/comments/commentRss/201958.htmlhttp://www.aygfsteel.com/linlinyu/services/trackbacks/201958.htmlcd ${jboss.server.home.dir}/conf
keytool -genkey -dname "CN=localhost, OU=localhost, O=localhost,L=localhost, S=State, C=Country Code" -alias "LC Cert" -keypass 123456 -keystore keystorename.keystore
keytool -export -alias "LC Cert" -file LC_cert.cer -keystore keystorename.keystore
keytool -import -file LC_cert.cer -keystore C:\java\jdk1.6.0_04\jre\lib\security\cacerts
keytool -printcert -v -file D:\Adobe\LiveCycle8\jboss\server\all\conf\LC_cert.cer
keytool -delete -alias "LC Cert" -keystore keystorename.keystore
keytool -delete -alias mykey -keystore C:\java\jdk1.6.0_04\jre\lib\security\cacerts
<Connector port="8443" address="${jboss.bind.address}"
maxThreads="100" minSpareThreads="5" maxSpareThreads="15"
scheme="https" secure="true" clientAuth="false"
keystoreFile="${jboss.server.home.dir}/conf/keystorename.keystore"
keystorePass="123456" sslProtocol = "TLS" URIEncoding="UTF-8"/>

]]>- struts2 杈撳嚭xml鏍煎紡鍐呭http://www.aygfsteel.com/linlinyu/articles/169169.htmllinlin yulinlin yuThu, 20 Dec 2007 15:04:00 GMThttp://www.aygfsteel.com/linlinyu/articles/169169.htmlhttp://www.aygfsteel.com/linlinyu/comments/169169.htmlhttp://www.aygfsteel.com/linlinyu/articles/169169.html#Feedback0http://www.aygfsteel.com/linlinyu/comments/commentRss/169169.htmlhttp://www.aygfsteel.com/linlinyu/services/trackbacks/169169.html
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="example" namespace="/example"
extends="struts-default">
<action name="outputXml" method="outxml" class="example.OutputXml">
<result name="xmlMessage" type="plaintext"></result>
</action>
</package>
</struts>
2,java浠g爜
package example;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;


public class OutputXml extends ActionSupport
{

public void outxml() throws Exception
{
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("text/xml ");
PrintWriter pw = response.getWriter();
pw.print("<cc>cccccc</cc>");
}
}

]]> - Property 鏂囦歡璇誨彇http://www.aygfsteel.com/linlinyu/articles/162947.htmllinlin yulinlin yuSun, 25 Nov 2007 02:56:00 GMThttp://www.aygfsteel.com/linlinyu/articles/162947.htmlhttp://www.aygfsteel.com/linlinyu/comments/162947.htmlhttp://www.aygfsteel.com/linlinyu/articles/162947.html#Feedback0http://www.aygfsteel.com/linlinyu/comments/commentRss/162947.htmlhttp://www.aygfsteel.com/linlinyu/services/trackbacks/162947.html
閫氱敤java 灞炴ф枃浠惰鍙?灝唜xx.properties鏀懼湪classpath涓氨鍙互榪愯浜?/p>
package com.soyoung.xxx.config;

import java.io.InputStream;
import java.util.Properties;


public class XXXConfig
{
private static String default_config = "/xxx.properties";

private static Properties mConfig;

static
{
mConfig = new Properties();


try
{

Class config_class = Class.forName(XXXConfig.class.getName());

InputStream is = config_class.getResourceAsStream(default_config);
mConfig.load(is);


} catch (Exception e)
{
e.printStackTrace();
}
}


private void XXXConfig()
{
}


public static String getProperty(String key)
{
return mConfig.getProperty(key);
}


public static String getProperty(String key, String defaultValue)
{
String value = mConfig.getProperty(key);
if (value == null)
return defaultValue;

return value;
}


public static boolean getBooleanProperty(String name, boolean defaultValue)
{
String value = XXXConfig.getProperty(name);

if (value == null)
return defaultValue;

return (new Boolean(value)).booleanValue();
}


public static int getIntProperty(String name)
{
return getIntProperty(name, 0);
}


public static int getIntProperty(String name, int defaultValue)
{
String value = XXXConfig.getProperty(name);

if (value == null)
return defaultValue;

return (new Integer(value)).intValue();
}


public static void main(String args[])
{
// mConfig.setProperty("name", "jianglinyu");
System.out.println(XXXConfig.getProperty("name"));
}
}


]]>
主站蜘蛛池模板:
栾川县|
榕江县|
资兴市|
望城县|
苍梧县|
桂平市|
营口市|
沽源县|
通渭县|
万载县|
穆棱市|
自贡市|
治多县|
长海县|
沁水县|
丹东市|
穆棱市|
铅山县|
海城市|
句容市|
高碑店市|
阿尔山市|
克东县|
宁安市|
延长县|
丰城市|
建湖县|
商南县|
青岛市|
民勤县|
新野县|
屯留县|
蓝山县|
日喀则市|
许昌县|
呈贡县|
建德市|
平和县|
黄石市|
临泽县|
东乡族自治县|