- 博客(17)
- 资源 (1)
- 收藏
- 关注
原创 java security
1 create self classload and class2 JAAS(java authentication and authorisition)3 MessageDigest (sha1 and md5)4 digital signature5 security
2012-05-09 16:38:52
293
原创 the usage of lucene
1 create indexIndexWriter writer = new IndexWriter(index path,new SimpleAnalyzer(),true);index path: location of indexnew SimpleAnalyzer():there are four analyers in lucene:WhitespaceAnalyze
2012-05-07 13:58:23
338
原创 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
270
原创 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
383
原创 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
207
原创 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
297
原创 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
612
原创 note
@OneToMany(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER, mappedBy = "survey")
2012-03-27 15:51:50
274
原创 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
284
原创 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
304
原创 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
572
原创 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
216
转载 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
365
转载 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
3024
原创 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
327
原创 那些年,我们一起追过的女孩~~
昨天熬到2点,把这部电影看完了,挺有感触的,比较惊讶台湾的中学生活和我们大陆的中学生活是如此相近(班级人数,课桌安排,还有那个可能月经不调的英语老师的歇斯底里),感觉就发生在自己身边一样。 当年我们班的班花也是学习非常棒,有几个同学比较迷她,包括我的一个好哥们(不过,他现在不承认)。我们的班花不睬任何人,也和女主人公一样只爱学习,最后考上了山东最好的大学,最后上了博士,居住到中国最大,最现代
2012-03-03 23:54:48
885
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人