发布时间:2014-06-15 10:41:27
每个servlet只有一个实例,怎样保证servlet是线程安全(thread-safe)的?servlet容器启动过程:1.reads web.xml;2.finds the declared Servlets in the classpath; and3. loads and instantiates each Servlet only once.对该过程的代码描述:String urlPattern = parseWebXmlAndRetrieveServletUrlPattern().........【阅读全文】
发布时间:2014-05-26 18:45:19
http://stackoverflow.com/questions/2216007/eclipse-java-ee-pluginI warmly suggest to install Eclipse IDE for Java EE developers which already includes the Web Tools Platform (WTP) and much more (see this page for a full comparison).As an alternative, y.........【阅读全文】
发布时间:2014-05-23 18:39:05
Secure hash functions in Java (ctd)From http://www.javamex.com/tutorials/cryptography/hash_functions_algorithms.shtmlNow we've seen an introduction to hash functions, let's look at how to compute a hash in Java. As mentioned, secure hashes are sometimes calledmessage digests. And.........【阅读全文】
发布时间:2014-05-22 19:48:31
参考: http://stackoverflow.com/questions/1019116/using-ls-to-list-directories-and-their-total-sizesroot@server4:/data# lsacs-provider apkftp app_resource bakup base-provider-0.0.1-SNAPSHOT Collector log4j.xml user-providerroot@server4:/data# du -sk.........【阅读全文】
发布时间:2014-05-22 14:14:56
使用ps a查看进程使用kill干掉进程root@server9:/data/Collector# nohup sh startDownloadMain.sh &[1] 9065root@server9:/data/Collector# -bash: root@server9:/data/Collector#: No such file or directory[1] 9044root@server9:/data/Collector# nohup: ignoring .........【阅读全文】