03 2013 档案

摘要:出现如题错误 可能是项目类型所致 项目改成普通java project 再把jar包导入即可 问题出在.classpath 上面 阅读全文
posted @ 2013-03-26 08:53 Shaman 阅读(332) 评论(0) 推荐(0)
摘要:openfire的搭建与运行 1 Check Source svnhttp://svn.igniterealtime.org/svn/repos/openfire/trunkcheck整个openfire 项目check完成后,首先右键项目 ---》 Team -- 》 断开连接 --》勾选'并且从... 阅读全文
posted @ 2013-03-26 08:49 Shaman 阅读(335) 评论(0) 推荐(0)
摘要:mvn install 生成target 里面包含lib 和 经过.class文件mvn的插件wst 会把 target里面的META-INFWEB-INF 拷到 ...metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\oopass-webservice实际上运行的项目是部署在这里的 阅读全文
posted @ 2013-03-22 13:54 Shaman 阅读(178) 评论(0) 推荐(0)
摘要:Easiest Method: Put all source files into one directory named after your project. i.e. "ProjectName" You can keep this directory in your workspace or... 阅读全文
posted @ 2013-03-21 09:45 Shaman 阅读(313) 评论(0) 推荐(0)
摘要:http://mybatis.googlecode.com/svn/sub-projects/generator/trunk/eclipse/UpdateSite/ eclipse安装插件地址 项目new 一个generatorConfig.xml xml version="1.0" encodi... 阅读全文
posted @ 2013-03-20 09:13 Shaman 阅读(309) 评论(0) 推荐(0)
摘要:Spring web.xml: bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"> property name="jndiName" value="${jms.jndi.conn... 阅读全文
posted @ 2013-03-15 18:14 Shaman 阅读(687) 评论(0) 推荐(0)
摘要:package com.suning.crawler.util; import java.lang.reflect.Method; import java.text.ParseException; import java.util.HashMap; import java.util.Iterato... 阅读全文
posted @ 2013-03-11 11:01 Shaman 阅读(507) 评论(0) 推荐(0)
摘要:在推特上抱怨面试时问HTTP GETE和POST的区别得到回答都不满意,有人不清楚,当时只回复了看 RFC2616。趁有空说说面试时得到的回答大多是:POST是安全的,因为被提交的数据看不到,或者被加密的,其它的还有GET的时候中文出现乱码(在地址栏里),数据最大长度限制等等。说 POST 比 GET 安全肯定是错的,POST跟GET都是明文传输,用httpfox等插件,或者像WireShark等类似工具就能观察到。POST和GET的差别其实是很大的。语义上,GET是获取指定URL上的资源,是读操作,重要的一点是不论对某个资源GET多少次,它的状态是不会改变的,在这个意义上,我们说GET是安全 阅读全文
posted @ 2013-03-11 10:30 Shaman 阅读(184) 评论(0) 推荐(0)
摘要:Http Post 的方式去访问 WebService 代码如下: public class HttpUtil { public static String http(String url, Map params) { URL u = null; HttpURLConnection con = ... 阅读全文
posted @ 2013-03-09 18:16 Shaman 阅读(516) 评论(0) 推荐(0)
摘要:javascript不能支持函数的重载,如下:<script language="JavaScript"> function f(length) { alert("高为:"+length); } function f(length,width) { alert("高为:"+length+",宽为:"+width); } </srcipt>上面那段代码其实是行不通的,因为函数定义时的参数个数和函数调用时的参数个数没有任何关系。 在函数中可以用f.arguments[0]和f.arguments 阅读全文
posted @ 2013-03-09 16:58 Shaman 阅读(206) 评论(0) 推荐(0)
摘要:公司里访问外网是要配置代理的 这时候用Maven的话 也需要配置一下Maven的代理才能download下来 所需要的组件。 配置如下 proxies> proxy | Specification for one proxy, to be used in connecting to the n... 阅读全文
posted @ 2013-03-09 16:54 Shaman 阅读(247) 评论(0) 推荐(0)
摘要:ApplicationContext context = new ClassPathXmlApplicationContext("/webservice-servlet.xml"); AccountService accountService = (AccountService)context.... 阅读全文
posted @ 2013-03-06 14:42 Shaman 阅读(1973) 评论(0) 推荐(0)
摘要:惭愧 到现在没熟悉这三个注解的用法。 英文原文:http://java.sun.com/docs/books/tutorial/java/javaOO/annotations.htmlJDK5.0 引入了一种新的元语言工具,叫“annotation”。 Annotation 提供的信息不是程序的一... 阅读全文
posted @ 2013-03-06 09:11 Shaman 阅读(340) 评论(0) 推荐(0)
摘要:maven是个项目管理工具,集各种功能于一身,下面介绍maven web项目在eclipse种的配置,并于tomcat集成。配置成功后,可以跟一般的web项目一样调试。 一、准备条件 1、安装下载jdk 这里以jdk1.6为例 2、安装eclipse 到eclipse官网下载 Eclipse... 阅读全文
posted @ 2013-03-05 16:40 Shaman 阅读(379) 评论(0) 推荐(0)
摘要:Error: eclipse: Resource is out of sync with the file system 解决办法:需要手动刷新一下资源管理器。 在eclipse中,工程目录右键,选择F5(refresh) 或者 设置eclipse自动刷新。 通过Window->Preference... 阅读全文
posted @ 2013-03-05 15:35 Shaman 阅读(380) 评论(0) 推荐(0)
摘要:eclipse3.6 右鍵點選-->properties,看到Project Facets,然後點選Dynamic Web Module看你要選擇哪個版本的,點選apply。就變成web專案了,連 classpath和.project這個都不用修改... 阅读全文
posted @ 2013-03-05 15:15 Shaman 阅读(208) 评论(0) 推荐(0)
摘要:Hello world. 阅读全文
posted @ 2013-03-05 15:13 Shaman 阅读(125) 评论(0) 推荐(0)
摘要:在POM文件中包含如下内容: UTF-8 经反复试验和分析,发现这跟Maven版本有关。Maven3和Maven2版本变化不小,不完全兼容。 具体解决方法说明如下:在确认POM文件中已有上述内容的前提下,增加以下内容(如已包含maven-compiler-plugin的相关内容,则只需在相应位置... 阅读全文
posted @ 2013-03-05 13:55 Shaman 阅读(988) 评论(0) 推荐(0)
摘要:I have created a maven project and I want to add all maven dependencies in build path of the project in eclipse. When I go to Java Build Path > Add Li... 阅读全文
posted @ 2013-03-05 10:45 Shaman 阅读(4221) 评论(0) 推荐(0)