zno2

上一页 1 ··· 17 18 19 20 21

2016年8月2日 #

1) Apache Maven 's README.txt

摘要: Apache Maven What is it? ----------- Maven is a software project management and comprehension tool. Based on the concept of a Project Object Model (POM), Maven can manage a project's build, repo... 阅读全文

posted @ 2016-08-02 22:09 zno2 阅读(284) 评论(0) 推荐(0) 编辑

spring + rs + RocketMQ 【精】

摘要: cxf-rs-rocketmq 项目地址:见git 阅读全文

posted @ 2016-08-02 22:08 zno2 阅读(361) 评论(0) 推荐(0) 编辑

wadl 的自动生成(cxf版本3.1.1)

摘要: 官方文档 http://cxf.apache.org/docs/jaxrs-services-description.html 举例: 1. cxf-2.7.6 可以自动生成wadl2. cxf-3.1.1 不可以自动生成,需要加注解3. request path:http://ip:port/pr 阅读全文

posted @ 2016-08-02 22:08 zno2 阅读(542) 评论(0) 推荐(0) 编辑

新建maven web 项目后,出现的小问题

摘要: 问题一:Description Resource Path Location TypeCannot change version of project facet Dynamic Web Module to 2.4. wadl line 1 Maven Java EE Configuration P 阅读全文

posted @ 2016-08-02 22:07 zno2 阅读(1206) 评论(0) 推荐(0) 编辑

分块编码→→←←

摘要: 15:05:04.031 [http-apr-8080-exec-8] INFO o.a.c.i.LoggingInInterceptor - Inbound Message ---------------------------- ID: 3 Address: http://localhost:8080/wadl/news/requestNews En... 阅读全文

posted @ 2016-08-02 22:07 zno2 阅读(207) 评论(0) 推荐(0) 编辑

cxf-rs client 调用

摘要: org.apache.cxf.jaxrs.client.WebClient get调用 post调用 create get WebClient org.apache.cxf.jaxrs.client.WebClient.create(String baseAddress) post WebClien 阅读全文

posted @ 2016-08-02 22:06 zno2 阅读(1076) 评论(0) 推荐(0) 编辑

wadl 的自动生成(cxf版本2.7.6)

摘要: 参考文档 http://cxf.apache.org/docs/jaxrs-services-description.html 获取项目 git@github.com:witaste/cxf-2.7.6-server-client-wadl.git 说明: 2.7.6 生成了简单的wadl, 不能生 阅读全文

posted @ 2016-08-02 22:06 zno2 阅读(1267) 评论(0) 推荐(0) 编辑

配置 cxf-rs spring bean 文件

摘要: http://cxf.apache.org/schemas/jaxrs.xsd http://cxf.apache.org/docs/restful-services.html 示例: 没有endpoint jaxrs:server 开启日志 效果等同于: <bean id="inIntercept 阅读全文

posted @ 2016-08-02 22:05 zno2 阅读(525) 评论(0) 推荐(0) 编辑

简单的cxf-rs

摘要: 整体结构 pom.xml web.xml beans.xml HelloWorld.java InputBean.java HelloWorldIT.java ?_wadl 开启方式:@Description 注解 阅读全文

posted @ 2016-08-02 22:04 zno2 阅读(231) 评论(0) 推荐(0) 编辑

jaxws.xsd

摘要: 示例: <jaxws:server [属性这这里]>[元素在这里]</jaxws:server> 1. address Specifies the HTTP address of the endpoint. This value will override the value specified i 阅读全文

posted @ 2016-08-02 22:03 zno2 阅读(582) 评论(0) 推荐(0) 编辑

配置 cxf-ws spring bean 文件

摘要: 1. import cxf.xml 位于 cxf-rt-core-2.1.3.jar <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or m 阅读全文

posted @ 2016-08-02 22:02 zno2 阅读(382) 评论(0) 推荐(0) 编辑

在 web 容器中运行 cxf

摘要: listener-class 是入口 (spring-web-4.1.6.RELEASE) param-name 是固定写法,位于org.springframework.web.context.ContextLoader CXFServlet 指定的class 位于 cxf-rt-transport 阅读全文

posted @ 2016-08-02 22:01 zno2 阅读(266) 评论(0) 推荐(0) 编辑

org.apache.cxf 官方骨架

摘要: mvn archetype:generate -DarchetypeCatalog=remote 用 cxf 筛选结果 官方三大项目骨架 阅读全文

posted @ 2016-08-02 22:00 zno2 阅读(330) 评论(0) 推荐(0) 编辑

简单的cxf-ws 基于web容器

摘要: pom.xml web.xml beans.xml HelloWorld.java HelloWorldImpl.java 版本差异:2.1.3 自带spring-web ;3.1.1 需要手动添加 spring-web 。 pom.xml (新版) 阅读全文

posted @ 2016-08-02 22:00 zno2 阅读(206) 评论(0) 推荐(0) 编辑

cxf maven依赖

摘要: org.apache.cxf cxf-rt-frontend-jaxws 3.1.1 org.apache.cxf cxf-rt-transports-http 3.1.1 ... 阅读全文

posted @ 2016-08-02 21:59 zno2 阅读(3786) 评论(0) 推荐(0) 编辑

@WebService @WebMethod 详解

摘要: 形象图解 首先AB均需要@WebService如果 那么有以下三种情况1. A的自有方法(不能被发现)2. A的重写方法(被发现且使用该方法)3. A的继承方法(被发现且使用父类该方法) @WebService Marks a Java class as implementing a Web Ser 阅读全文

posted @ 2016-08-02 21:58 zno2 阅读(3244) 评论(0) 推荐(0) 编辑

http://localhost:8080/hello?wsdl

摘要: ... 阅读全文

posted @ 2016-08-02 21:58 zno2 阅读(2187) 评论(0) 推荐(0) 编辑

Creating a Simple Web Service and Client with JAX-WS

摘要: Creating a Simple Web Service and Client with JAX-WS 发布服务 查看wsdl http://localhost:8080/HelloServic?wsdl 生成客户端代码 cmd 运行 %JAVA_HOME%/bin/wsimport.exe 脚本 阅读全文

posted @ 2016-08-02 21:56 zno2 阅读(204) 评论(0) 推荐(0) 编辑

通过wsdl生成client 的几种方式

摘要: wsimport 位置 %JAVA_HOME%/bin/wsimport.exe 帮助 wsimport -help Usage: wsimport [options] <WSDL_URI> where [options] include: -b <path> specify jaxws/jaxb 阅读全文

posted @ 2016-08-02 21:56 zno2 阅读(578) 评论(0) 推荐(0) 编辑

BSD Socket (java)

摘要: 服务器 客户端 测试: 客户端请求参数 Program arguments:abc 客户端显示结果: 处理结果是:ABC 服务器显示结果: 伺服中.......客户端请求数据:abc 注意: accept方法会加锁,直到建立连接。 多个客户端连接服务器时,需排队依次处理。 阅读全文

posted @ 2016-08-02 21:54 zno2 阅读(237) 评论(0) 推荐(0) 编辑

BSD Socket 通信

摘要: Berkeley sockets is an application programming interface (API) for Internet sockets and Unix domain sockets, used for inter-process communication (IPC 阅读全文

posted @ 2016-08-02 21:53 zno2 阅读(376) 评论(0) 推荐(0) 编辑

web service 架构

摘要: Web services architecture The service provider sends a WSDL file to UDDI. The service requester contacts UDDI to find out who is the provider for the 阅读全文

posted @ 2016-08-02 21:49 zno2 阅读(211) 评论(0) 推荐(0) 编辑

nginx 配置图片服务器 (window版本)

摘要: 下载 https://nginx.org/download/nginx-1.22.0.zip 配置nginx二级域名 ①找到配置文件 例如:%nginx_home%/conf/nginx.conf ②配置 #user nobody; worker_processes 1; #error_log lo 阅读全文

posted @ 2016-08-02 21:46 zno2 阅读(422) 评论(0) 推荐(0) 编辑

正向代理和反向代理

摘要: While a forward proxy acts as an intermediary for its associated clients to contact any server, a reverse proxy acts as an intermediary for its associ 阅读全文

posted @ 2016-08-02 21:45 zno2 阅读(242) 评论(0) 推荐(0) 编辑

Unicode

摘要: §什么是unicode He explained that "[t]he name 'Unicode' is intended to suggest a unique, unified, universal encoding". §为什么出现unicode Unicode could be roug 阅读全文

posted @ 2016-08-02 21:44 zno2 阅读(136) 评论(0) 推荐(0) 编辑

utf-8

摘要: §什么是utf-8 The name is derived from: Universal Coded Character Set + Transformation Format—8-bit. 统一编码字符集转型格式8位 §几个字节 UTF-8 uses one byte for any ASCII 阅读全文

posted @ 2016-08-02 21:44 zno2 阅读(137) 评论(0) 推荐(0) 编辑

ISO 8895-1

摘要: https://en.wikipedia.org/wiki/ISO/IEC_8859-1#Codepage_layout http://czyborra.com/charsets/ 阅读全文

posted @ 2016-08-02 21:43 zno2 阅读(568) 评论(0) 推荐(0) 编辑

禁用自动回复功能

摘要: 已开启自动回复设置 通过编辑内容或关键词规则,快速进行自动回复设置。如具备开发能力,可更灵活地使用该功能。查看详情 默认是非开发模式 关注公众号时自动回复:你好,欢迎关注xxxx! 以上是非开发人员用的,开发人员查看详情 去基本配置 启用服务器配置(即可转发到填写的url) 生效时间有一定的延迟。可 阅读全文

posted @ 2016-08-02 21:24 zno2 阅读(423) 评论(0) 推荐(0) 编辑

微信post xml 消息编码问题

摘要: site:mp.weixin.qq.com utf 微信卡券接口说明 - 微信公众平台开发者文档 所有API接口POST的数据只支持utf8编码,否则会返回报错。 以上是获取的部分信息 这个尽管有点模糊,只针对卡卷接口,但也能提供线索。 分析文本消息 假设Content中的内容是utf-8编码的文本 阅读全文

posted @ 2016-08-02 21:24 zno2 阅读(414) 评论(0) 推荐(0) 编辑

生成带参数的二维码

摘要: spring bean java 服务类 测试类 注意: 生成带参数的二维码 未授权时调用报错: {"errcode":48001,"errmsg":"api unauthorized hint: [KQ2xDA0318vr22]"} 阅读全文

posted @ 2016-08-02 21:24 zno2 阅读(1070) 评论(0) 推荐(0) 编辑

场景二维码的场景值

摘要: 不带场景值的二维码,举例: 带场景值的二维码,举例: 接收消息的api接口说明: 事件KEY值,qrscene_为前缀,后面为二维码的参数值 生成场景值二维码api接口说明: 场景值ID(字符串形式的ID),字符串类型,长度限制为1到64,仅永久二维码支持此字段 可能的值: ["","qrscene 阅读全文

posted @ 2016-08-02 21:24 zno2 阅读(503) 评论(0) 推荐(0) 编辑

常见XML解析器

摘要: xpp3 http://www.extreme.indiana.edu/xgws/xsoap/xpp/ Xml Pull Parser (in short XPP) is a streaming pull XML parser and should be used when there is a n 阅读全文

posted @ 2016-08-02 21:23 zno2 阅读(419) 评论(0) 推荐(0) 编辑

微信返回错误码

摘要: 链接地址: http://mp.weixin.qq.com/wiki/10/6380dc743053a91c544ffd2b7c959166.html 具体码: {"errcode":40003,"errmsg":"invalid openid hint: [mO2e40049vr18]"} 经验: 阅读全文

posted @ 2016-08-02 21:23 zno2 阅读(1316) 评论(0) 推荐(0) 编辑

微信接入时tomcat的端口调整

摘要: 必须以http://或https://开头,分别支持80端口和443端口。 www.xx.com 等同于 www.xx.com:80 但tomcat默认端口是8080,需要修改为80 修改方法: TOMCAT_HOME/conf/server.xml 将8080修改为80,重启tomcat即可 阅读全文

posted @ 2016-08-02 21:23 zno2 阅读(477) 评论(0) 推荐(0) 编辑

2. 发送图文消息

摘要: 1. 获取素材id 2. 发送图文消息 效果截图: 阅读全文

posted @ 2016-08-02 21:22 zno2 阅读(598) 评论(0) 推荐(0) 编辑

微信官方api & 非官方api

摘要: 1.微信公众平台开发者文档 http://mp.weixin.qq.com/wiki/home/index.html 2.微信公众平台 https://mp.weixin.qq.com/ 3.第三方api weixin4j https://github.com/foxinmy/weixin4j ht 阅读全文

posted @ 2016-08-02 21:22 zno2 阅读(903) 评论(0) 推荐(0) 编辑

1. 发送模板消息

摘要: 第三方微信公众号Java SDK ①在公众平台申请开通模板消息 ②添加模板 ③发送模板 结果: 阅读全文

posted @ 2016-08-02 21:21 zno2 阅读(2155) 评论(0) 推荐(0) 编辑

2015年7月15日 #

Spring 整合 RocketMQ

摘要: 1. 引入jar包 com.alibaba.rocketmq rocketmq-all 3.2.6 pom ... 阅读全文

posted @ 2015-07-15 10:07 zno2 阅读(7088) 评论(2) 推荐(0) 编辑

上一页 1 ··· 17 18 19 20 21

导航