![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
文章平均质量分 59
atojaoomy
这个作者很懒,什么都没留下…
展开
-
[转]Web Services Over SSL - HOW TO
一篇好文章,原文地址:http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html顺手贴过来,找起来方便SummaryThis HOWTO guide explains steps involved in (i) deploying SSL accessible Java Web Services in Servlet based S...2012-05-07 15:31:54 · 142 阅读 · 0 评论 -
通过六个题目彻底掌握String笔试面试题
1public static void main(String[] args){ String a = "a1"; String b = "a"+ 1; System.out.println(a==b);} 2public static void main(String[] args){ String a = "ab...原创 2012-02-21 18:22:06 · 95 阅读 · 0 评论 -
Axis2 integrate with tomcat occur "unsupport" error
Creating a Dynamic web project and choose "Dynamic Web Module Version" 3.0 willoccur [The Apache Axis2 Web service runtime in Tomcat v7.0 Server does not support the client project Sha...2012-02-27 14:42:30 · 85 阅读 · 0 评论 -
How Java access to shared folder
import java.io.IOException;import java.net.MalformedURLException;import java.net.UnknownHostException;import jcifs.smb.SmbException;import jcifs.smb.SmbFile;import jcifs.smb.SmbFileInputSt...2012-02-27 20:23:03 · 119 阅读 · 0 评论 -
发几个收藏的Java游戏
JavaMine.jar 扫雷 jdiamonds.jar 俄罗斯 jman.jar 是男人2012-02-29 13:47:38 · 81 阅读 · 0 评论 -
Top 10 Java Developer Forums
Developers get into tricky situations while programming.Some systax program or any specific feature about java,there are lots fo confusions and doubts that we encounter. The best is community...2012-03-08 15:46:46 · 92 阅读 · 0 评论 -
HttpClient Access to HTML Form
Sample Html Form Code:<s:form action="Add" method="post"> <s:textfield label="ISBN" name="book.isbn"></s:textfield> <s:textfield label="Name" name=&q2012-03-19 17:27:43 · 104 阅读 · 0 评论 -
synchronized (this) 柳暗花明又一村
今天写一个测试类,主要是测试wait(long timeout)到底会不会自动notify,到后来发现一些很诡异的东西。package com.hp.thread.chapter04;public class WaitAndNotify { private Object obj = new Object(); public static void testPureWai...2013-05-17 16:23:04 · 126 阅读 · 0 评论 -
同一个线程synchronized方法调用synchronized方法
一个线程里面有两个synchronized方法a(),b().假如在a()里面调用b(),会发生什么情况?这样public synchronized void a(){ ... b() ...}public synchronized void b(){ ...} a()会被hang住吗? ...原创 2013-02-21 16:28:01 · 817 阅读 · 0 评论 -
JAEE5.0工程JSTL不能正常使用解决办法
在Tomcat的安装路径下:apache-tomcat-7.0.25\webapps\examples\WEB-INF\lib有此jstl.jar和standard.jar包 web.xml声明部分一般分为如下版本的xsd, web-app_2_2.xsd web-app_2_3.xsd web-app_2_4.xsd web-app_2_5.xsd 只需把web...2012-02-21 18:21:48 · 93 阅读 · 0 评论 -
PowerDesigner(15.1.0.2805)反向工程错误解决汇总
错误一:Non SQL Error : Could not load class com.mysql.jdbc.Driver 解决: 将驱动文件,如:mysql-connector-java-5.0.7-bin.jar复制到PowerDesigner安装目录下(比如说我的:D:\Program Files\Sybase\PowerDesigner 15 里面),然后编辑连接配...2012-02-20 23:14:59 · 301 阅读 · 0 评论 -
Security Managers and Permissions
Once a class has been loaded into the virtual machine and checked by the verifier, the second security mechanism of the Java platform springs into action: the security manager. The security manager is...2012-05-11 17:44:50 · 114 阅读 · 0 评论 -
Java SSL
一直调查SSL的问题,毫无进展,头疼,先把手头搞定的资料整理下: 网上的资料很多,偷懒一下把。 服务器端代码:package com.ricoh.rits.bct.ssl;import java.io.BufferedReader;import java.io.FileInputStream;import java.io.FileNotFoundExcepti...2012-05-14 16:40:46 · 114 阅读 · 0 评论 -
User Authentication
The Java Authentication and Authorization Service (JAAS) is a part of Java SE 1.4 and beyond. The "authentication" part is concerned with ascertaining the identity of a program user. The "authorizatio...2012-05-18 14:35:01 · 785 阅读 · 0 评论 -
java打开默认浏览器网址方法
不使用 java.awt.Desktop API,打开默认浏览器访问指定链接的方法在 Java SE 6 中提供了一套桌面 API 实现与本机桌面 API 的无缝集成,这些桌面 API 使用你的主机操作系统的文件关联以启动与特定文件类型相关联的应用程序。但是因为目前许多客户端并没有安装、部署 JRE 6.0 之后的 Java 运行环境,那么在旧的运行环境中怎样才能调用默认浏览器...原创 2012-02-10 13:23:17 · 253 阅读 · 0 评论 -
使用Ant发送邮件
<?xml version="1.0" encoding="UTF-8"?><project name="hello" default="public" basedir="."> <property file="attachments.properties"> </property&g2012-02-12 16:13:21 · 533 阅读 · 0 评论 -
Java Read Content From Intenet HTML
import java.io.BufferedReader;import java.io.FileNotFoundException;import java.io.IOException;import java.io.InputStreamReader;import java.net.URL;import java.net.URLConnection;public class ReadInte...原创 2012-02-15 13:53:27 · 116 阅读 · 0 评论 -
敏捷开发中编写高质量Java代码
敏捷开发的理念已经流行了很长的时间,在敏捷开发中的开发迭代阶段中,我们可以通过五个步骤,来有效的提高整个项目的代码质量。 Java项目开发过程中,由于开发人员的经验、Java代码编写习惯,以及缺乏统一的标准和管理流程,往往导致整个项目的代码质量较差,难于维 护,需要较大的测试投入和周期等问题。这些问题在一个项目组初建、需求和设计均具有不完全可预期性和完备性的全新项目中将尤为突出。 如...原创 2012-02-20 23:11:51 · 71 阅读 · 0 评论 -
[转]编程技术面试的五大要点
扎实的基础知识、高质量的代码、清晰的思路、优化代码的能力、优秀的综合能力是编程技术面试的五大要点。找工作一直是一个热门话题。要想找到心仪的工作,难免需要经过多轮面试。编程面试是程序员面试过程中最为重要的一个环节。如果能在编程面试的环节充分展示自己的能力,那么拿到中意的Offer就是水到渠成的事情。我先后在欧特克、微软和思科等公司任软件工程师,多次接受他人的面试,同时也面试过很多人。总结...原创 2012-02-20 23:13:32 · 57 阅读 · 0 评论 -
Filter,Servlet,Conponent如何获取ApplicationContext
Filter 获取Context在init()方法获取ServletContext,然后通过WebApplicationContextUtils.getWebApplicationContext(servletContext); public void init(FilterConfig filterConfig) throws ServletException { ...2014-08-04 18:35:36 · 476 阅读 · 0 评论