灰色轨迹
yangjayup · 共 122 篇文章
maven 生成webservice客户端代码
<dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version> </dependency> <dependency> <g…
2016-12-08 18:34 · 评论(0)
httppost,httpget,模拟登录操作
CookieStore cookieStore = WebDriverUtil.seleniumCookiesToCookieStore(driver); CloseableHttpClient client = HttpClients.custom() .setDefaultCookieStore(cookieStore).build(); HttpGet httpGet = new HttpGet(url); try { // 执行get请求 HttpResponse httpResponse = client.execute(httpGet); String responseStr =…
2016-10-21 10:09 · 评论(0)
内网穿透神器ngrok mac系统
一、ngrok 下载 到官网下载ngrok小工具:https://ngrok.com/,工具体积很小,现在已经升级到 2.X 的版本,只支持64位操作系统,并被作者用于商业化。1.X版本的免费自定义固定二级域名功能已经开始收费 二、ngrok 使用 把下载后的文件解压,然后使用命令,进入到安装目录,执行命令:./ngrok http 3489 红色框内意思是 ,随机分配一个公网可以访问的二级域名http://65ea2210.ngrok.io/转发到我们本机的3489端口 ,这也就意味着,现在访问 http://65ea2210.ngrok.io 就如同访问内网的http://127.0.0…
2016-10-11 08:31 · 评论(0)
webservice服务搭建和客户端代码生成
***********************cxf生成客户端代码***************************** 到cxf.apache.org/download.html 下载cxf到本地,build运行文件 <?xml version="1.0"?> <project name="cxf wsdl2java" basedir="." default="cxfWSDLToJava"> <property name="cxf.home" location="/Users/william/devsoft/apache-cxf-3.1.6" /> <path id="cxf.clas…
2016-07-19 16:14 · webservice · 评论(0)
eclipse使用tomcat发布项目(mac os)
eclipse使用tomcat发布项目(mac os) =====eclipse中配置引入tomcat配置===== mac系统下eclipse的preferences的设置在Eclipse->系统偏好 添加一个tomcat到eclipse,Eclipse->系统偏好->Server->Runtime Environments点击右边的add,如果是mac下的tomcat,需要指定到libexec目录; 添加完成后在eclipse的Servers视图没有该tomcat的选项,这时候右击需要发布的项目Run as->Run on Server就可以了,启动后可以正常访问项目,但发现tomcat…
2016-06-23 10:16 · 评论(0)
log4j配置
将包目录日志输出到指定文件(wechat.hostel为包目录,如果打印struts日志等,就配置成struts的包目录,outfile2为自定义名称) log4j配置: log4j.logger.wechat.hostel=INFO,outfile2 log4j.appender.outfile2.layout=org.apache.log4j.PatternLayout log4j.appender.outfile2=org.apache.log4j.FileAppender log4j.appender.outfile2.File=E:/tools/bin/logs/wechat.lo…
2016-06-02 17:16 · log4j · 评论(0)
Maven 发布 参数 选择目录,多环境配置
MyEclipse 中 Maven项目打包,先右击项目Run as -> Maven Clean 然后 Run as ->Run Configurations; Base directory 填写项目地址:D:/JavaProject/mavenProject; Goals填写:clean package -DskipTests -Pproduction (production为对应的pom文件里的环境参数,pom配置如下:) <profiles> <!-- 开发环境 JAVA问题查询 --> <profile> <id>development</id> <activation> <acti…
2016-05-18 18:09 · 评论(0)
MyEclipse编译太慢设置
Windows->Preferences->Validation: Windows->Preferences->Validation 右击项目,Properties-builders JavaScript Validator勾掉 如何设置某些文件夹不需要validation 右击文件夹->Mycelipse->Exclude from validation
2016-03-02 10:15 · 评论(0)
webservice修改服务端,无需客户端重新生成代码配置
<jaxws:client id="yddReservationWebservice" serviceClass="com.yododo.hotel.pms.ids.yododo.ws.reservation.ReservationWebservice" address="${yododo.webservice.url}/ws/reservationWebservice" > <jaxws:properties> <entry key="set-jaxb-validation-event-handler" value="false"/> </jaxws:properties> </jaxws…
2015-10-19 15:58 · webservice · 评论(0)
Linux上Tomcat不能使用软链接解决办法
最近在使用Tomcat开发一个项目,由于特殊原因不能使用IDE自带的Maven或者Web Server环境,因此每次修改都需要copy文件到生产环境,但是当项目文件太多以后每次copy都会很慢,于是就想到使用Linux软连接的方式,但是我在自己的webapp下创建软链接之后总是不能访问,后来发现如果需要使用软链接的话需要修改webapp的一些设置,具体方法是,在webapp目录下创建META-INF目录,并在其下创建一个context.xml文件,内容如下: <?xml version="1.0" encoding="UTF-8"?> <Context path="/myapp" allow…
2015-09-29 10:43 · 评论(0)
ajaxfileupload 报错handleError
天在用ajaxfileupload时firebug报了一个“jQuery.handleError is not a function”的错误。因为在以前使用jQuery.form一直都没有出现过这个问题,我对比以前的项目才发现,在这个项目中使用的jQuery是1.10.2的版本,而以前是使用的1.4.2。度娘一番之后,找到解决办法:jQuery.handleError is not a function 报错原因是: handlerError只在jquery-1.4.2之前的版本中存在,jquery-1.4.2之后的版本中都没有这个函数了。 因此在ajaxfileupload.js加入这个方…
2015-09-25 19:46 · 评论(0)
nginx转nginx,域名无法获得
nginx跳转到nginx的action,redirect时候域名取不到,直接是ip 解决办法,在第一个nginx配置: location / { # proxy_pass http://dieoo.xicp.net:7167 ; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://108.81.132.225…
2015-09-25 17:13 · 评论(0)
soapui ,Web Service测试工具soapui 使用
官网下载soupui工具,免安装的 www.soapui.org 下载好后,打开工具新建一个Project: File->New SoapUI Project 填写Project Name WSDL/WADL可以不填; 建好以后,右击新建的项目“ADD WSDL”,输入你的webservice 的地址,点OK,就可以看到webservice里的接口啦。点击某一个接口,点 Request 1,在右边输入对应的值,运行就可以了!
2015-09-15 17:24 · 评论(0)
linux 查看6小时内修改的文件
linux 查看6小时内修改的文件命令 find ./ -cmin -360 查看24小时内修改的文件命令 find ./ -mtime 0 48~24小时修改过的文件 find ./ -mtime 1
2015-06-17 15:32 · 评论(0)
域名访问本地服务器配置,微信
微信公众平台开发: 远程访问地址 : william.test.com 远程端口号 : 10200 微信开发地址:http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login
2015-03-06 13:00 · 评论(0)