- 博客(17)
- 资源 (1)
- 收藏
- 关注
原创 java security
1 create self classload and class 2 JAAS(java authentication and authorisition) 3 MessageDigest (sha1 and md5) 4 digital signature 5 security
2012-05-09 16:38:52
321
原创 the usage of lucene
1 create index IndexWriter writer = new IndexWriter(index path,new SimpleAnalyzer(),true); index path: location of index new SimpleAnalyzer(): there are four analyers in lucene: WhitespaceAnalyze
2012-05-07 13:58:23
366
原创 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
292
原创 open talenet command
telnet did not installed default,so we should firstly open the service. 1 open Control Panel 2 click Programes and Features 3 click turn window features on or off 4 check telnet client done!
2012-04-17 10:24:29
409
原创 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
240
原创 Basic knowledge about XML
The difficute between HTML and XML FOR XML: 1 case sensitive 2 there must have end tag 3 attribute value must be wrapped by double quotes 4 if one tag without end tag ,there must have "/" at the
2012-04-05 15:55:29
332
原创 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 Spring Reference: h
2012-04-02 14:08:30
643
原创 note
@OneToMany(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER, mappedBy = "survey")
2012-03-27 15:51:50
297
原创 knowledge for I18N
key words: Locale ResourceBundle Velocity 1 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
315
原创 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 tool 2 click '"Organize" and select "Menu bar" under "Layout" 3 ok ,you can s
2012-03-23 11:51:17
331
原创 how to check port number and kill process with the port number
1 input cmd in command box 2 input netstat -ano 3 you can see pid 4 open process manager dialog window 5 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
604
原创 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
239
转载 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
399
转载 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
3056
原创 What's values in SuppressWarning
deprecation the warn will appear when you use deprecatory classes or methods unchecked execute the unchecked translate code,eg , you do not use generics for Collection fallthrough
2012-03-22 10:32:01
357
原创 那些年,我们一起追过的女孩~~
昨天熬到2点,把这部电影看完了,挺有感触的,比较惊讶台湾的中学生活和我们大陆的中学生活是如此相近(班级人数,课桌安排,还有那个可能月经不调的英语老师的歇斯底里),感觉就发生在自己身边一样。 当年我们班的班花也是学习非常棒,有几个同学比较迷她,包括我的一个好哥们(不过,他现在不承认)。我们的班花不睬任何人,也和女主人公一样只爱学习,最后考上了山东最好的大学,最后上了博士,居住到中国最大,最现代
2012-03-03 23:54:48
927
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅