zno2

2016年8月2日 #

部署到私服

摘要: eclipse 中 执行 Goals: deploy:deploy 报错: 查询原因是: http://stackoverflow.com/questions/6308162/maven-the-packaging-for-this-project-did-not-assign-a-file-to- 阅读全文

posted @ 2016-08-02 22:19 zno2 阅读(427) 评论(0) 推荐(0)

Proxy Hosted Virtual

摘要: http://books.sonatype.com/nexus-book/reference/confignx-sect-manage-repo.html Public Repositories 对外地址 http://192.168.0.244:8081/nexus/content/groups/ 阅读全文

posted @ 2016-08-02 22:18 zno2 阅读(275) 评论(0) 推荐(0)

nexus 私服跑一跑流程

摘要: 尝试建立新项目上传,分享 pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http 阅读全文

posted @ 2016-08-02 22:18 zno2 阅读(440) 评论(0) 推荐(0)

nexus 下载及安装

摘要: 一、下载 nexus maven http://www.sonatype.org/ http://www.sonatype.org/nexus/ http://www.sonatype.org/nexus/go/ https://sonatype-download.global.ssl.fastly 阅读全文

posted @ 2016-08-02 22:17 zno2 阅读(1962) 评论(0) 推荐(0)

nexus 参考文档

摘要: 参考文档: http://books.sonatype.com/nexus-book/reference/index.html E:\e\nexus\nexus-2.12.0-01\conf\nexus.properties 配置文件: # Sonatype Nexus# # This is the 阅读全文

posted @ 2016-08-02 22:17 zno2 阅读(398) 评论(0) 推荐(0)

nexus 组件下载和上传

摘要: 一、 重写 super pom 修改 maven 的 settings.xml Configuring Maven to Use a Single Repository Group 补充: 目的是只使用nexus http://maven.apache.org/ref/3.0.4/maven-mod 阅读全文

posted @ 2016-08-02 22:17 zno2 阅读(679) 评论(0) 推荐(0)

17)maven-surefire-plugin

摘要: http://maven.apache.org/surefire/maven-surefire-plugin/ Goals Overview The Surefire Plugin has only one goal: surefire:test runs the unit tests of an 阅读全文

posted @ 2016-08-02 22:16 zno2 阅读(202) 评论(0) 推荐(0)

maven项目诡异的问题

摘要: install 的 war包中 dao 文件夹下没有xml文件 解决:重新注册为maven项目 阅读全文

posted @ 2016-08-02 22:16 zno2 阅读(120) 评论(0) 推荐(0)

13) Developing Java Plugins

摘要: 官方指导 http://maven.apache.org/guides/plugin/guide-java-plugin-development.html http://maven.apache.org/plugin-developers/ 插件命名公约和 Apache Maven 商标 maven 阅读全文

posted @ 2016-08-02 22:15 zno2 阅读(852) 评论(0) 推荐(0)

15) maven dependency scope

摘要: Dependency Scope Dependency scope is used to limit the transitivity of a dependency, and also to affect the classpath used for various build tasks. Th 阅读全文

posted @ 2016-08-02 22:15 zno2 阅读(95) 评论(0) 推荐(0)

16)maven lifecycle

摘要: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html http://maven.apache.org/ref/3.3.9/maven-core/lifecycles.html https://ma 阅读全文

posted @ 2016-08-02 22:15 zno2 阅读(186) 评论(0) 推荐(0)

11) 生成可执行jar文件 maven-shade-plugin

摘要: 搜索 site:maven.apache.org maven-assembly-plugin http://maven.apache.org/plugins/maven-assembly-plugin/usage.html All goals except assembly:single have 阅读全文

posted @ 2016-08-02 22:14 zno2 阅读(568) 评论(0) 推荐(0)

12) maven-compiler-plugin

摘要: The Compiler Plugin is used to compile the sources of your project. At present the default source setting is 1.5 and the default target setting is 1.5 阅读全文

posted @ 2016-08-02 22:14 zno2 阅读(320) 评论(0) 推荐(0)

14)settings.xml

摘要: 1. User Level. ${user.home}/.m2/settings.xml 2. Global Level. ${maven.home}/conf/settings.xml <settings> </settings> <?xml version="1.0" encoding="UTF 阅读全文

posted @ 2016-08-02 22:14 zno2 阅读(167) 评论(0) 推荐(0)

8) pom.xml

摘要: http://maven.apache.org/ref/3.3.3/maven-model/maven.html 执行mvn命令的时候默认文件名pom.xml 也可以通过 -f 指定 比如 mvn -f mypom.xml clean <xs:schema xmlns:xs="http://www. 阅读全文

posted @ 2016-08-02 22:13 zno2 阅读(1205) 评论(0) 推荐(0)

10) 常用坐标

摘要: 4.0.0 cn.zno D 1.0 org.springframework spring-context 4.1.6.RELEASE ... 阅读全文

posted @ 2016-08-02 22:13 zno2 阅读(160) 评论(0) 推荐(0)

9) 依赖查询 & 镜像站 阿里云 repositories

摘要: 依赖查询 http://mvnrepository.com/ Maven仓库查询 http://search.maven.org 仓库 如果使用中央仓库 Eclipse 极有可能会卡死 以下是国内镜像库 a 阿里云 https://maven.aliyun.com/mvn/guide <reposi 阅读全文

posted @ 2016-08-02 22:13 zno2 阅读(564) 评论(0) 推荐(0)

6) mvn archetype:create-from-project

摘要: cd %old%mvn archetype:create-from-projectcd %old%/target/generated-sources/archetype mvn installcd %newParent% mvn archetype:generate -DarchetypeCatal 阅读全文

posted @ 2016-08-02 22:12 zno2 阅读(486) 评论(0) 推荐(0)

7) mvn dependency:tree

摘要: http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html mvn dependency:tree 查看 去除第三方jar中引用 阅读全文

posted @ 2016-08-02 22:12 zno2 阅读(320) 评论(0) 推荐(0)

5) mvn archetype:generate

摘要: 获取帮助 mvn -h 命令格式 usage: mvn [options] [<goal(s)>] [<phase(s)>] Defines a system property. This will take priority over any other property specified. e 阅读全文

posted @ 2016-08-02 22:11 zno2 阅读(585) 评论(0) 推荐(0)

4) Maven 安装

摘要: # # Maven2 Start Up Batch script## Required ENV vars:# # JAVA_HOME - location of a JDK home dir## Optional ENV vars# # M2_HOME - location of maven2's 阅读全文

posted @ 2016-08-02 22:11 zno2 阅读(227) 评论(0) 推荐(0)

2) 下载Maven

摘要: http://maven.apache.org/ http://maven.apache.org/download.cgi Maven 3.3.3 (Binary tar.gz) Maven 3.3.3 (Binary zip) Maven 3.3.3 (Source tar.gz) Maven 3 阅读全文

posted @ 2016-08-02 22:10 zno2 阅读(225) 评论(0) 推荐(0)

3) Maven 目录结构

摘要: 进入maven根目录 cmd 命令 tree 1. bin Maven2 Start Up Batch script windows linux 2. boot plexus-classworlds —— A class loader framework http://plexus.codehaus 阅读全文

posted @ 2016-08-02 22:10 zno2 阅读(180) 评论(0) 推荐(0)

web service 项目 和 普通 web项目 的 区别

摘要: web service 面向的是开发者(需要再次开发) 普通web 面向的是用户(直接使用) 阅读全文

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

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 阅读(293) 评论(0) 推荐(0)

spring + rs + RocketMQ 【精】

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

posted @ 2016-08-02 22:08 zno2 阅读(367) 评论(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 阅读(589) 评论(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 阅读(1246) 评论(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 阅读(215) 评论(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 阅读(1312) 评论(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 阅读(1096) 评论(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 阅读(546) 评论(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 阅读(249) 评论(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 阅读(603) 评论(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 阅读(394) 评论(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 阅读(274) 评论(0) 推荐(0)

org.apache.cxf 官方骨架

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

posted @ 2016-08-02 22:00 zno2 阅读(334) 评论(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 阅读(214) 评论(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 阅读(3808) 评论(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 阅读(3376) 评论(0) 推荐(0)

http://localhost:8080/hello?wsdl

摘要: ... 阅读全文

posted @ 2016-08-02 21:58 zno2 阅读(2224) 评论(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 阅读(214) 评论(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 阅读(602) 评论(0) 推荐(0)

BSD Socket (java)

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

posted @ 2016-08-02 21:54 zno2 阅读(248) 评论(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 阅读(396) 评论(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 阅读(219) 评论(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 阅读(442) 评论(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 阅读(257) 评论(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 阅读(149) 评论(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 阅读(154) 评论(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 阅读(585) 评论(0) 推荐(0)

禁用自动回复功能

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

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

微信post xml 消息编码问题

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

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

生成带参数的二维码

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

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

场景二维码的场景值

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

posted @ 2016-08-02 21:24 zno2 阅读(524) 评论(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 阅读(443) 评论(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 阅读(1408) 评论(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 阅读(505) 评论(0) 推荐(0)

2. 发送图文消息

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

posted @ 2016-08-02 21:22 zno2 阅读(620) 评论(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 阅读(1029) 评论(0) 推荐(0)

1. 发送模板消息

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

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

导航