<?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>cashplk的心路历程 &#187; release</title>
	<atom:link href="http://cashplk.com/tag/release/feed/" rel="self" type="application/rss+xml" />
	<link>http://cashplk.com</link>
	<description>学无止境，梦如夏花～</description>
	<lastBuildDate>Sat, 31 Jul 2010 10:15:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>项目发布踩到地雷</title>
		<link>http://cashplk.com/2009/09/25/%e9%a1%b9%e7%9b%ae%e5%8f%91%e5%b8%83%e8%b8%a9%e5%88%b0%e5%9c%b0%e9%9b%b7/</link>
		<comments>http://cashplk.com/2009/09/25/%e9%a1%b9%e7%9b%ae%e5%8f%91%e5%b8%83%e8%b8%a9%e5%88%b0%e5%9c%b0%e9%9b%b7/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 03:51:20 +0000</pubDate>
		<dc:creator>cashplk</dc:creator>
				<category><![CDATA[new technology]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[notifyManager]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://cashplk.com/?p=88</guid>
		<description><![CDATA[项目周五发布，周一的时候，老大说我们的项目踩到地雷了。 跟踪了一下，发现是这样的： 方法A中声明了 notifyManager，然后顺手生成了getter和setter，结果却没有使用，在方法里面自己又 new 了一个，然后代码里面判断， if(notifyManager != null){ return null; NotifyManager notifyManager = new NotifyManager(); // TODO other things } 我们项目中又确实在spring的配置文件中注入了notifyManager的这个bean，结果就出问题了。 虽然不是我们的问题，不过还是可以学到东西的： 1，自己会new的方法千万不要写getter和setter，避免spring初始化注入的干扰。 2，需要代码REVIEW，避免出现这种问题。 q]]></description>
			<content:encoded><![CDATA[<p>项目周五发布，周一的时候，老大说我们的项目踩到地雷了。</p>
<p>跟踪了一下，发现是这样的：</p>
<p>方法A中声明了 notifyManager，然后顺手生成了getter和setter，结果却没有使用，在方法里面自己又 new 了一个，然后代码里面判断，</p>
<p>if(notifyManager != null){<br />
         return null;<br />
         NotifyManager notifyManager  = new NotifyManager();</p>
<p>         // TODO  other things<br />
}</p>
<p>我们项目中又确实在spring的配置文件中注入了notifyManager的这个bean，结果就出问题了。</p>
<p>虽然不是我们的问题，不过还是可以学到东西的：<br />
1，自己会new的方法千万不要写getter和setter，避免spring初始化注入的干扰。<br />
2，需要代码REVIEW，避免出现这种问题。</p>
<p>q</p>
]]></content:encoded>
			<wfw:commentRss>http://cashplk.com/2009/09/25/%e9%a1%b9%e7%9b%ae%e5%8f%91%e5%b8%83%e8%b8%a9%e5%88%b0%e5%9c%b0%e9%9b%b7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->