﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>亲亲宝宝 &#187; java</title>
	<atom:link href="http://www.wenhq.com/category/java/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wenhq.com</link>
	<description>记录宝宝成长文章和软件开发经验笔记</description>
	<lastBuildDate>Mon, 09 Jan 2012 00:52:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>xml xslt中的空格输出处理</title>
		<link>http://www.wenhq.com/article/view_717.html</link>
		<comments>http://www.wenhq.com/article/view_717.html#comments</comments>
		<pubDate>Sun, 25 Dec 2011 09:04:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[XSL-FO]]></category>

		<guid isPermaLink="false">http://www.wenhq.com/?p=717</guid>
		<description><![CDATA[<p>
xml xslt中的空格输出处理,这个问题困扰了我很久都没有找到解决方法。
今天硬着头皮终于找到了一个可以用的解决方法了。
很简单，即用&amp;#160;就可以表示空格了。
其他参考资料

用&lt;xsl:text&gt;&lt;/xsl:text&gt;可以保留空格，注意这里的xsl类型为text才可以，为其他的就不行了。
另外，disable-output-escaping...<a href='http://www.wenhq.com/article/view_717.html' rel="nofollow">阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>
xml xslt中的空格输出处理,这个问题困扰了我很久都没有找到解决方法。
今天硬着头皮终于找到了一个可以用的解决方法了。
很简单，即用&amp;#160;就可以表示空格了。
其他参考资料

用&lt;xsl:text&gt;&lt;/xsl:text&gt;可以保留空格，注意这里的xsl类型为text才可以，为其他的就不行了。
另外，disable-output-escaping...<a href='http://www.wenhq.com/article/view_717.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_717.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JAVA实现AES的加密和解密算法</title>
		<link>http://www.wenhq.com/article/view_716.html</link>
		<comments>http://www.wenhq.com/article/view_716.html#comments</comments>
		<pubDate>Sun, 04 Dec 2011 07:43:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[java基础]]></category>

		<guid isPermaLink="false">http://www.wenhq.com/?p=716</guid>
		<description><![CDATA[<p>import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
/**AES 是一种可逆加密算法，对用户的敏感信息加密处理
* 对原始数据进行AES加密后，在进行Base64编码转化；
*/
public class AESOper...<a href='http://www.wenhq.com/article/view_716.html' rel="nofollow">阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
/**AES 是一种可逆加密算法，对用户的敏感信息加密处理
* 对原始数据进行AES加密后，在进行Base64编码转化；
*/
public class AESOper...<a href='http://www.wenhq.com/article/view_716.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_716.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fop的流程控制语句</title>
		<link>http://www.wenhq.com/article/view_715.html</link>
		<comments>http://www.wenhq.com/article/view_715.html#comments</comments>
		<pubDate>Wed, 30 Nov 2011 11:19:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[XSL-FO]]></category>

		<guid isPermaLink="false">http://www.wenhq.com/?p=715</guid>
		<description><![CDATA[<p>fop中条件判断有两种方式：
第一、   if语句
&lt;xsl:if test=&#8221;host =&#8217;wenhq&#8217;&#8221;&gt;
&lt;fo:block&gt;亲亲宝宝&lt;/fo:block&gt;
&lt;/xsl:if&gt;
host是xml中数据，可以动态设置
第二、   when语句
&lt;xsl:choose&gt;
&lt;xsl:when test="host ='wenhq'"&gt;
&lt;fo:block&gt;亲亲宝宝&lt;...<a href='http://www.wenhq.com/article/view_715.html' rel="nofollow">阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>fop中条件判断有两种方式：
第一、   if语句
&lt;xsl:if test=&#8221;host =&#8217;wenhq&#8217;&#8221;&gt;
&lt;fo:block&gt;亲亲宝宝&lt;/fo:block&gt;
&lt;/xsl:if&gt;
host是xml中数据，可以动态设置
第二、   when语句
&lt;xsl:choose&gt;
&lt;xsl:when test="host ='wenhq'"&gt;
&lt;fo:block&gt;亲亲宝宝&lt;...<a href='http://www.wenhq.com/article/view_715.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_715.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fop动态引用图片</title>
		<link>http://www.wenhq.com/article/view_714.html</link>
		<comments>http://www.wenhq.com/article/view_714.html#comments</comments>
		<pubDate>Fri, 25 Nov 2011 11:17:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[XSL-FO]]></category>

		<guid isPermaLink="false">http://www.wenhq.com/?p=714</guid>
		<description><![CDATA[<p>fop中一般是这样应用图片：
&lt;fo:external-graphic src=&#8221;url(/path/cover1.jpg)&#8221; /&gt;
这样图片是不会变的，有时需要根据条件换个图片，src属性值不能引入&lt;xsl:value-of select= 去获取xml中的值。可以通过attribute的属性给src动态赋值，如：
&lt;fo:external-graphic&gt;
&lt;xsl:attribute name=&#...<a href='http://www.wenhq.com/article/view_714.html' rel="nofollow">阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>fop中一般是这样应用图片：
&lt;fo:external-graphic src=&#8221;url(/path/cover1.jpg)&#8221; /&gt;
这样图片是不会变的，有时需要根据条件换个图片，src属性值不能引入&lt;xsl:value-of select= 去获取xml中的值。可以通过attribute的属性给src动态赋值，如：
&lt;fo:external-graphic&gt;
&lt;xsl:attribute name=&#...<a href='http://www.wenhq.com/article/view_714.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_714.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java访问未验证证书的HTTPS</title>
		<link>http://www.wenhq.com/article/view_711.html</link>
		<comments>http://www.wenhq.com/article/view_711.html#comments</comments>
		<pubDate>Thu, 20 Oct 2011 00:33:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.wenhq.com/?p=711</guid>
		<description><![CDATA[<p>用http进行连接的，客户端代码比较简单，直接使用URL类进行连接并获取输入流即可。https不需要客户端证书，并且服务器端的证书是已经受信任的也同http一样容易。当验证的证书每年的费用得好几千元，为了省钱，这里主要是说java访问未验证证书的https的访问。
通常有两种方案：1、将证书导入到TrustStore文件中；2、修改X...<a href='http://www.wenhq.com/article/view_711.html' rel="nofollow">阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>用http进行连接的，客户端代码比较简单，直接使用URL类进行连接并获取输入流即可。https不需要客户端证书，并且服务器端的证书是已经受信任的也同http一样容易。当验证的证书每年的费用得好几千元，为了省钱，这里主要是说java访问未验证证书的https的访问。
通常有两种方案：1、将证书导入到TrustStore文件中；2、修改X...<a href='http://www.wenhq.com/article/view_711.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_711.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tomcat中配置ssl</title>
		<link>http://www.wenhq.com/article/view_710.html</link>
		<comments>http://www.wenhq.com/article/view_710.html#comments</comments>
		<pubDate>Mon, 17 Oct 2011 10:11:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.wenhq.com/?p=710</guid>
		<description><![CDATA[<p>ssl是安全连接的缩写，也就是通过https访问，tomcat中配置ssl很方便，大致有几步：
第一、   生成一个证书；
Java中的keytool就可以很方便生成证书，在命令行先进入java的bin目录，然后执行：
keytool -genkey -alias tomcat -keyalg RSA -validity 10000 -dname &#8220;cn=127.0.0.1,o=qcb,c=cn&#8221; -keystore tom...<a href='http://www.wenhq.com/article/view_710.html' rel="nofollow">阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>ssl是安全连接的缩写，也就是通过https访问，tomcat中配置ssl很方便，大致有几步：
第一、   生成一个证书；
Java中的keytool就可以很方便生成证书，在命令行先进入java的bin目录，然后执行：
keytool -genkey -alias tomcat -keyalg RSA -validity 10000 -dname &#8220;cn=127.0.0.1,o=qcb,c=cn&#8221; -keystore tom...<a href='http://www.wenhq.com/article/view_710.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_710.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jboss6安全配置</title>
		<link>http://www.wenhq.com/article/view_708.html</link>
		<comments>http://www.wenhq.com/article/view_708.html#comments</comments>
		<pubDate>Fri, 05 Aug 2011 13:49:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jboss]]></category>

		<guid isPermaLink="false">http://www.wenhq.com/?p=708</guid>
		<description><![CDATA[<p>jboss默认配置了以下服务：
* Administration Console
* JMX Console
* JBoss Web Services Console
为了安全起见，需要用户通过授权进行访问。默认只有Administration Console需要输入用户名和密码，默认用户名和密码都是admin。后面两项需要启用安全检查，Administration Console和JMX Console 默认使用的是同一用户和...<a href='http://www.wenhq.com/article/view_708.html' rel="nofollow">阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>jboss默认配置了以下服务：
* Administration Console
* JMX Console
* JBoss Web Services Console
为了安全起见，需要用户通过授权进行访问。默认只有Administration Console需要输入用户名和密码，默认用户名和密码都是admin。后面两项需要启用安全检查，Administration Console和JMX Console 默认使用的是同一用户和...<a href='http://www.wenhq.com/article/view_708.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_708.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>redhat下jboss6自启动配置</title>
		<link>http://www.wenhq.com/article/view_692.html</link>
		<comments>http://www.wenhq.com/article/view_692.html#comments</comments>
		<pubDate>Sat, 16 Apr 2011 11:17:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[jboss]]></category>

		<guid isPermaLink="false">http://www.wenhq.com/?p=692</guid>
		<description><![CDATA[<p>在jboss-6.0.0.Final\bin目录下有个jboss_init_redhat.sh的文件，拷贝到/etc/init.d/目录并改名为jboss。
$cp $jboss_home/bin/jboss_init_redhat.sh  /etc/init.d/jboss
$vi jboss
#!/bin/sh
#
# JBoss Control Script
# chkconfig: 2345 80 20
# description: JBoss Container
JBOSS_HOME=${JBOSS_HOME:-&#8221;/usr/...<a href='http://www.wenhq.com/article/view_692.html' rel="nofollow">阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>在jboss-6.0.0.Final\bin目录下有个jboss_init_redhat.sh的文件，拷贝到/etc/init.d/目录并改名为jboss。
$cp $jboss_home/bin/jboss_init_redhat.sh  /etc/init.d/jboss
$vi jboss
#!/bin/sh
#
# JBoss Control Script
# chkconfig: 2345 80 20
# description: JBoss Container
JBOSS_HOME=${JBOSS_HOME:-&#8221;/usr/...<a href='http://www.wenhq.com/article/view_692.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_692.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux环境下面部署JBoss6服务</title>
		<link>http://www.wenhq.com/article/view_689.html</link>
		<comments>http://www.wenhq.com/article/view_689.html#comments</comments>
		<pubDate>Sat, 02 Apr 2011 22:43:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jboss]]></category>

		<guid isPermaLink="false">http://www.wenhq.com/?p=689</guid>
		<description><![CDATA[<p>第一步配置jdk环境
vi /etc/profile,在结尾增加:
JAVA_HOME=/usr/java/jdk1.6
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=.:$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
保存文件, 用命令 source /etc/profile 使环境变量生效
执行 java –version ，查看jdk是否正确安装。
第二步解压...<a href='http://www.wenhq.com/article/view_689.html' rel="nofollow">阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>第一步配置jdk环境
vi /etc/profile,在结尾增加:
JAVA_HOME=/usr/java/jdk1.6
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=.:$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
保存文件, 用命令 source /etc/profile 使环境变量生效
执行 java –version ，查看jdk是否正确安装。
第二步解压...<a href='http://www.wenhq.com/article/view_689.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_689.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>单机启动多个JBOSS6实例</title>
		<link>http://www.wenhq.com/article/view_688.html</link>
		<comments>http://www.wenhq.com/article/view_688.html#comments</comments>
		<pubDate>Sat, 02 Apr 2011 11:58:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jboss]]></category>

		<guid isPermaLink="false">http://www.wenhq.com/?p=688</guid>
		<description><![CDATA[<p>单机启动多个Jboss6实例可以说比tomcat启动多个方便多了，仅仅需要复制一份，然后修改几个字母就可以啦。
1、拷贝配置文件
# cp   $jboss_Home/server/defaul   $jboss_Home/server/yourconf
2、修改端口
# vi $jboss_Home/server/yourconf/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml
默认端口如...<a href='http://www.wenhq.com/article/view_688.html' rel="nofollow">阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>单机启动多个Jboss6实例可以说比tomcat启动多个方便多了，仅仅需要复制一份，然后修改几个字母就可以啦。
1、拷贝配置文件
# cp   $jboss_Home/server/defaul   $jboss_Home/server/yourconf
2、修改端口
# vi $jboss_Home/server/yourconf/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml
默认端口如...<a href='http://www.wenhq.com/article/view_688.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_688.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

