
Working Knowledge
donghf30122494
好的设计师应该善于收集知识,学习知识,分享知识--把会的东西表达出来!
展开
-
I18N by Spring
Target:In velocity files, we visite international resource which was stored in DB by used some methods!Key Words:Velocity , Spring , messagesource , Synyx Messagesource for SpringReference:h原创 2012-04-02 14:08:30 · 615 阅读 · 0 评论 -
open talenet command
telnet did not installed default,so we should firstly open the service.1 open Control Panel2 click Programes and Features3 click turn window features on or off4 check telnet clientdone!原创 2012-04-17 10:24:29 · 386 阅读 · 0 评论 -
Basic knowledge about XML
The difficute between HTML and XMLFOR XML:1 case sensitive2 there must have end tag3 attribute value must be wrapped by double quotes4 if one tag without end tag ,there must have "/" at the原创 2012-04-05 15:55:29 · 303 阅读 · 0 评论 -
XSLT knowledge
XSLT(extensible stylesheet language transformation) transform one xml document to another which have been decorated completed。XSL usually include XSLT,XPATH,XSL-FO .we usually use the tag to define原创 2012-04-10 13:54:50 · 208 阅读 · 0 评论 -
EventQueue.invokeLater(new Runnable)
把这个事件(new Runnable(设置计算器可见))添加到awt的事件处理线程当中去awt的事件处理线程会按照队列的顺序依次调用每个待处理的事件来运行 使用该方式的原因是:awt是单线程模式的,所有awt的组件只能在(推荐方式)事件处理线程中访问,从而保证组件状态的可确定性。 AWT is single thread,so we should put the thread of eve转载 2012-03-22 11:09:04 · 3034 阅读 · 1 评论 -
usage of the serialVersionUID
we will use it when we serialize object and store the object to file.if there no compatibility demand,we can not use it. we should use it in the under conditions:for one object with serializable ,原创 2012-03-22 22:53:38 · 220 阅读 · 0 评论 -
display file type in Win7
When you use Win7, you maybe not see the menu bar in resource manager tool.how to display it?1 open resource manager tool2 click '"Organize" and select "Menu bar" under "Layout"3 ok ,you can s原创 2012-03-23 11:51:17 · 305 阅读 · 0 评论 -
note
@OneToMany(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER, mappedBy = "survey")原创 2012-03-27 15:51:50 · 275 阅读 · 0 评论 -
knowledge for I18N
key words: Locale ResourceBundle Velocity1 sevlet get the country and language message ,eg china's language is zh and country code is CN then new Locale(language,country)2 message = ResourceBu原创 2012-03-27 00:04:15 · 285 阅读 · 0 评论 -
What's values in SuppressWarning
deprecation the warn will appear when you use deprecatory classes or methodsunchecked execute the unchecked translate code,eg , you do not use generics for Collectionfallthrough原创 2012-03-22 10:32:01 · 328 阅读 · 0 评论 -
the different between System.exit(0) and System.exit(1)
注释中说的很清楚,这个方法是用来结束当前正在运行中的java虚拟机。如何status是非零参数,那么表示是非正常退出。System.exit(0)是将你的整个虚拟机里的内容都停掉了 ,而dispose()只是关闭这个窗口,但是并没有停止整个application exit() 。无论如何,内存都释放了!也就是说连JVM都关闭了,内存里根本不可能还有什么东西System.exit(0)是正常转载 2012-03-22 11:15:35 · 369 阅读 · 0 评论 -
how to check port number and kill process with the port number
1 input cmd in command box2 input netstat -ano3 you can see pid4 open process manager dialog window5 if you don't see the pid,you should click view and select pid 6 find the pid and kill it原创 2012-03-23 11:22:03 · 573 阅读 · 0 评论 -
operation of db block
try { try { db operation } finnaly { conn.close(); }}catch(Exception e) { catch exception} the inner try - finnaly is responsible for closing db conn原创 2012-04-18 10:17:25 · 274 阅读 · 0 评论