<?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"
	>

<channel>
	<title>Oracle Seeker, Oracle探索者 | hailor | Activity</title>
	<atom:link href="http://oracleseeker.com/members/hailor/activity/feed/" rel="self" type="application/rss+xml" />
	<link>http://oracleseeker.com/members/hailor/activity/feed</link>
	<description>hailor - Activity Feed</description>
	<pubDate>Tue, 31 Jan 2012 02:17:13 +0000</pubDate>
	<generator>http://buddypress.org/?v=1.5</generator>
	<language>en</language>
	
						<item>
				<guid>http://oracleseeker.com/2009/08/05/learn_and_use_spring_security2_step1/</guid>
				<title>hailor 撰写了一篇新 Blog 日志：学习与使用Spring Security2(一)</title>
				<link>http://oracleseeker.com/2009/08/05/learn_and_use_spring_security2_step1/</link>
				<pubDate>Wed, 05 Aug 2009 20:26:14 +0000</pubDate>

				<description>
					<![CDATA[
					<p><a href="http://oracleseeker.com/members/hailor/" rel="nofollow">hailor</a> 撰写了一篇新 Blog 日志：<a href="http://oracleseeker.com/2009/08/05/learn_and_use_spring_security2_step1/" rel="nofollow">学习与使用Spring Security2(一)</a> <span class="time-since"></span><br />
<blockquote>Spring Security2是一套安全验证框架，与它的前一个版本acegi相比，简化了很多配置的工作，因为很多配置都已经自动完成了。下面就开始体验一下Spring Security2配置的简单与强大。在本文中将介绍Spring Security2的基本使用。   1, 新建一个J2EE Web工程。 2, 添加必须的jar包放到classpath中：  spring.jar  spring-security-core-2.0.4.jar  spring-security-core-tiger-2.0.4.jar 3, 添加Spring Security的配置文件。在WEB-INF目录下建Application-Security.xml文件。并加入以下配置信息。  &#060;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&#062; &#060;beans:beans xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns=http://www.springframework.org/schema/security&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns:beans=http://www.springframework.org/schema/beans&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xsi:schemalocation=&#8221;<a href="http://www.springframework.org/schema/beans&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#038;#160" rel="nofollow">http://www.springframework.org/schema/beans&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#038;#160</a>; <a href="http://www.springframework.org/schema/beans/spring-beans-2.5.xsd&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#038;#160" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.5.xsd&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#038;#160</a>; <a href="http://www.springframework.org/schema/security&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#038;#160" rel="nofollow">http://www.springframework.org/schema/security&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#038;#160</a>; <a href="http://www.springframework.org/schema/security/spring-security-2.0.4.xsd&#8221;&#062;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#038;#160" rel="nofollow">http://www.springframework.org/schema/security/spring-security-2.0.4.xsd&#8221;&#062;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#038;#160</a>; &#160;&#160; &#060;http auto-config=&#8221;true&#8221;&#062;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#060;intercept-url access=&#8221;ROLE_USER&#8221; pattern=&#8221;/**&#8221; /&#062;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160; &#060;/http&#062;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160; &#060;authentication-provider&#062;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160; &#060;user-service&#062;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; &#060;user authorities=&#8221;ROLE_USER, ROLE_ADMIN&#8221; password=&#8221;hand&#8221; name=&#8221;hand&#8221; /&#062;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; &#060;user [...]
</p></blockquote>

											<p>Comments: 0</p>
					
										]]>
				</description>
							</item>
					<item>
				<guid>http://oracleseeker.com/2009/07/23/oracle_jdbc_cannot_got_timestamp/</guid>
				<title>hailor 撰写了一篇新 Blog 日志：Oracle JDBC无法取得时分秒</title>
				<link>http://oracleseeker.com/2009/07/23/oracle_jdbc_cannot_got_timestamp/</link>
				<pubDate>Thu, 23 Jul 2009 00:52:17 +0000</pubDate>

				<description>
					<![CDATA[
					<p><a href="http://oracleseeker.com/members/hailor/" rel="nofollow">hailor</a> 撰写了一篇新 Blog 日志：<a href="http://oracleseeker.com/2009/07/23/oracle_jdbc_cannot_got_timestamp/" rel="nofollow">Oracle JDBC无法取得时分秒</a> <span class="time-since"></span><br />
<blockquote>在项目中使用的Oracle JDBC版本为Oracle JDBC Driver version &#8211; 9.0.2.0.0，由于使用了Hibernate，所以一直没有发现使用native sql查询时时间类型会丢失时分秒。测试程序如下：<br />
public class TestDate {<br />
	public static void main(String[] args) {<br />
		Connection connection = null;<br />
		try {<br />
			Class.forName(&#8221;oracle.jdbc.driver.OracleDriver&#8221;);<br />
			try {<br />
				connection = DriverManager.getConnection(&#8221;jdbc:oracle:thin:@localhost:1521:xe&#8221;,&#8221;exthosf&#8221;,&#8221;exthosf&#8221;);<br />
				PreparedStatement ps=connection.prepareStatement(&#8221;SELECT sysdate FROM dual&#8221;);<br />
			    ResultSet rs=ps.executeQuery();<br />
			    while(rs.next())<br />
			    System.out.println(rs.getObject(1));<br />
			} catch (SQLException e) {<br />
				e.printStackTrace();<br />
			}<br />
			if (connection != null) {<br />
				System.out.println(&#8221;取得连接 <img src='http://oracleseeker.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#8221;);<br />
			} else {<br />
				System.out.println(&#8221;无法取得数据库连接！&#8221;);<br />
			}<br />
		} catch (ClassNotFoundException e) [...]
</p></blockquote>

											<p>Comments: 0</p>
					
										]]>
				</description>
							</item>
					<item>
				<guid>http://oracleseeker.com/activity/p/82/</guid>
				<title>hailor 和 Derek.Jaa 已经成为好友</title>
				<link>http://oracleseeker.com/activity/p/82/</link>
				<pubDate>Wed, 08 Jul 2009 17:33:13 +0000</pubDate>

				<description>
					<![CDATA[
					<p><a href="http://oracleseeker.com/members/hailor/" rel="nofollow">hailor</a> 和 <a href="http://oracleseeker.com/members/derek.jaa/" rel="nofollow">Derek.Jaa</a> 已经成为好友 <span class="time-since"></span></p>

											<p>Comments: 0</p>
					
										]]>
				</description>
							</item>
					<item>
				<guid>http://oracleseeker.com/activity/p/35/</guid>
				<title>aronezhang 和 hailor 已经成为好友</title>
				<link>http://oracleseeker.com/activity/p/35/</link>
				<pubDate>Thu, 02 Jul 2009 22:41:42 +0000</pubDate>

				<description>
					<![CDATA[
					<p><a href="http://oracleseeker.com/members/aronezhang/" rel="nofollow">aronezhang</a> 和 <a href="http://oracleseeker.com/members/hailor/" rel="nofollow">hailor</a> 已经成为好友 <span class="time-since"></span></p>

											<p>Comments: 0</p>
					
										]]>
				</description>
							</item>
					<item>
				<guid>http://oracleseeker.com/activity/p/33/</guid>
				<title>hailor 和 Eleven.Xu 已经成为好友</title>
				<link>http://oracleseeker.com/activity/p/33/</link>
				<pubDate>Thu, 02 Jul 2009 21:39:25 +0000</pubDate>

				<description>
					<![CDATA[
					<p><a href="http://oracleseeker.com/members/hailor/" rel="nofollow">hailor</a> 和 <a href="http://oracleseeker.com/members/eleven.xu/" rel="nofollow">Eleven.Xu</a> 已经成为好友 <span class="time-since"></span></p>

											<p>Comments: 0</p>
					
										]]>
				</description>
							</item>
		
	</channel>
</rss>

