Skip to main content

Posts

Bean scopes

singleton (Default) Scopes a single bean definition to a single object instance per Spring IoC container. prototype Scopes a single bean definition to any number of object instances. request Scopes a single bean definition to the lifecycle of a single HTTP request; that is, each HTTP request has its own instance of a bean created off the back of a single bean definition. Only valid in the context of a web-aware Spring ApplicationContext. session Scopes a single bean definition to the lifecycle of an HTTP Session. Only valid in the context of a web-aware Spring ApplicationContext. global session Scopes a single bean definition to the lifecycle of a global HTTP Session. Typically only valid when used in a portlet context. Only valid in the context of a web-aware Spring ApplicationContext.

set heap and perm size of ant

ant build could fail as OOM due to heap/perm size. to adjust, you can set the heap/perm size as ANT_OPTS in env variables. for example, in ant.bat, add a line before %ANT_OPTS% is referenced set ANT_OPTS=%ANT_OPTS% -Xms256M -Xmx512M -XX:PermSize=256M -XX:MaxPermSize=512M

springsource setup

download the latest spring framework from http://www.springsource.org/download and unzip build the source from C:\springsource\spring-framework-3.0.5.RELEASE\projects\build-spring-framework with ant download eclipse or springsource sts from http://www.springsource.com/developer/sts import projects under C:\springsource\spring-framework-3.0.5.RELEASE\projects into springsource sts reference html and PDF can be build from project spring-framework-reference sample code is located at https://anonsvn.springframework.org/svn/spring-samples/

@SOAPBinding

style Style.DOCUMENT (default) Style.RPC Specifies the style of the SOAP message. If RPC style is specified, each message part within the SOAP body is a parameter or return value and appears inside a wrapper element within the soap:body element. The message parts within the wrapper element correspond to operation parameters and must appear in the same order as the parameters in the operation. If DOCUMENT style is specified, the contents of the SOAP body must be a valid XML document, but its form is not as tightly constrained. use Use.LITERAL (default) Use.ENCODED Specifies how the data of the SOAP message is streamed. parameterStyle ParameterStyle.BARE ParameterStyle.WRAPPED (default) Specifies how the method parameters, which correspond to message parts in a WSDL contract, are placed into the SOAP message body. If BARE is specified, each parameter is placed into the message body as a child element of the message root. If WRAPPED is specified, all of the input parameters are wrapped i

毛泽东诗词几首

四言诗·赠尼克松 老叟坐凳 嫦娥奔月 走马观花 念奴娇·鸟儿问答 鲲鹏展翅, 九万里, 翻动扶摇羊角。 背负青天朝下看, 都是人间城郭。 炮火连天, 弹痕遍地。 吓倒蓬间雀。 怎么得了, 哎呀我要飞跃。 借问君去何方? 雀儿答道: 有仙山琼阁。 不见前年秋月朗, 订了三家条约。 还有吃的, 土豆烧熟了, 再加牛肉。 不须放屁, 试看天地翻覆。 水调歌头·重上井冈山 久有凌云志, 重上井冈山。 千里来寻故地, 旧貌变新颜。 到处莺歌燕舞, 更有潺潺流水, 高路入云端。 过了黄洋界, 险处不须看。 风雷动, 旌旗奋, 是人寰。 三十八年过去, 弹指一挥间。 可上九天揽月, 可下五洋捉鳖, 谈笑凯歌还。 世上无难事, 只要肯登攀。 七律·人民解放军占领南京 1949年4月 钟山风雨起苍黄,百万雄师过大江。 虎踞龙盘今胜昔,天翻地覆慨而慷。 宜将剩勇追穷寇,不可沽名学霸王。 天若有情天亦老,人间正道是沧桑。

南京知青之歌

《南京知青之歌》部分歌词 蓝蓝的天上,白云在飞翔,美丽的扬子江畔是可爱的南京古城,我的家乡。啊,彩虹般的大桥,直上云霄,横跨长江,雄伟的钟山脚下是我可爱的家乡。 告别了妈妈,再见吧家乡,金色的学生时代已转入了青春史册,一去不复返。啊,未来的道路多么艰难,曲折又漫长,生活的脚印深浅在偏僻的异乡。 跟着太阳出,伴着月亮归,沉重的绣地球是光荣神圣的天职,我的命运。啊,用我的双手绣红了地球,绣红了宇宙,幸福的明天,相信吧一定会到来。 告别了你呀,亲爱的姑娘,揩干了你的泪水,洗掉心中忧愁,洗掉悲伤。啊,心中的人儿告别去远方,离开了家乡,爱情的星辰永远放射光芒…… 1970年8月3日,任毅又被拖去参加一次全省的公判大会,这次被宣判的人中间也有任毅。当判词读到任毅的时候,他几乎不相信自己的耳朵:”……判刑10年……“在此之前,任毅已经做好了最坏的打算,从死刑到无期徒刑全都想到了,惟独没有想到会给自己一个10年。 从8月3日这一天起,任毅离开了整整禁锢了他165个日夜的娃娃桥监狱囚室,被押到劳改农场去服刑,在那里等待他的是漫长的3000多个日日夜夜。 1979年2月,任毅被平反出狱。出狱后,公检法赔给他一把新吉他。他被安排到南京一家丝织厂工作。