zno2

2016年8月6日 #

JAVA 面试题及思考

摘要: 学而时习之 1. 关键词:java内存分配 2. 关键词:c for 3. 关键词:override , overload The public type A must be defined in its own file Cannot reduce the visibility of the in 阅读全文

posted @ 2016-08-06 08:25 zno2 阅读(459) 评论(0) 推荐(0)

hash

摘要: 一、维基百科怎么说 A hash function is any function that can be used to map data of arbitrary size to data of fixed size. The values returned by a hash function 阅读全文

posted @ 2016-08-06 08:25 zno2 阅读(409) 评论(0) 推荐(1)

SecureCRTv7.3 和 navicat110_mysql

摘要: 激活SecureFX 时,不需要patch,只需要 名字和CRT一直,生成几个参数,填写完即可激活。(但是版本要保持一致,目前7无法激活8) navicat for mysql PatchNavicat.exe 使用这个打补丁 这些下载文件收录在微云。 阅读全文

posted @ 2016-08-06 08:24 zno2 阅读(557) 评论(0) 推荐(0)

XML xmlns

摘要: xmlns xml namespaces 参考 http://www.w3school.com.cn/tags/tag_prop_xmlns.asp http://www.w3school.com.cn/xml/xml_namespaces.asp 放到同一个文件中,分不清楚,加上命名空间就可以分清 阅读全文

posted @ 2016-08-06 08:24 zno2 阅读(161) 评论(0) 推荐(0)

mybatis sql xml 字符逃脱

摘要: where a 不等于 1 where a <> 1 阅读全文

posted @ 2016-08-06 08:24 zno2 阅读(137) 评论(0) 推荐(0)

保存分区表时出现错误(0000000001)函数不正确

摘要: 进入Windows PE —— 打开diskgenius 1. 区全部删掉 2. 菜单栏“硬盘”->“转化分区表类型为MBR格式” 3. 右键硬盘 -> 快速分区 注:Windows Preinstallation Environment(Windows PE),Windows预安装环境,是带有有限 阅读全文

posted @ 2016-08-06 08:23 zno2 阅读(4474) 评论(0) 推荐(0)

常见笔记本进入bios方法

摘要: 联想 y510p ->F2 ThinkPad E431 -> Fn + F1 阅读全文

posted @ 2016-08-06 08:23 zno2 阅读(193) 评论(0) 推荐(0)

chrome 字体太浅,如何设置

摘要: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-directwrite-for-ui 阅读全文

posted @ 2016-08-06 08:23 zno2 阅读(685) 评论(0) 推荐(0)

winrar 真正的官网是没有广告的,google即得

摘要: http://www.rarlab.com/download.htm 阅读全文

posted @ 2016-08-06 08:23 zno2 阅读(630) 评论(0) 推荐(0)

npp 文本编辑器 开源

摘要: 下载地址 https://notepad-plus-plus.org/download/v6.8.4.html 使用过程中发现有一个自动提示功能很烦人,如何取消呢? Settings -> Preferences -> Auto-Completion -> 取消勾选 -> Close 阅读全文

posted @ 2016-08-06 08:23 zno2 阅读(425) 评论(0) 推荐(0)

一些好的查询网站

摘要: 全国企业信息查询 好商网 www.haob2b.com 卫星地图 相约久久 http://www.meet99.com/map ip 、区号、手机归属地 、 地名查询 查询网 http://www.ip138.com/ 这是幻觉吗:http://neave.com/strobe/ 免费下载韦伯词典 阅读全文

posted @ 2016-08-06 08:22 zno2 阅读(290) 评论(0) 推荐(1)

JAVA开发常用计算机命令

摘要: 系统常用命令 win+r > control (可进入控制面板,管理工具,服务) win+r > cmd > systeminfo (x86-based 指32位系统,x86-64 指64位系统) 阅读全文

posted @ 2016-08-06 08:22 zno2 阅读(121) 评论(0) 推荐(0)

开机配置

摘要: 一些单词: Legacy 遗产 Legacy Mode 传统模式 BIOS Base Input Output System 基本输入输出系统 UEFI Unified Extensible Firmware Interface 【统一的,可扩展的,固件,接口】 统一的可扩展固件接口 ?扩展阅读? 阅读全文

posted @ 2016-08-06 08:22 zno2 阅读(191) 评论(0) 推荐(0)

Md5 util

摘要: Md5PasswordEncoder.java http://docs.spring.io/spring-security/site/docs/3.0.x/apidocs/org/springframework/security/authentication/encoding/PasswordEnc 阅读全文

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

文件拷贝工具类

摘要: https://docs.spring.io/spring/docs/1.2.x/javadoc-api/org/springframework/util/FileCopyUtils.html 用法举例: 阅读全文

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

html 源码 引入样式

摘要: post-title2 示例 sdf post-title 示例 阅读全文

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

HttpUtils

摘要: Tips: post 提交表单的时候需要注意content 的编码 ,一般约定使用UTF-8 ,系统默认编码时gb2312 如需调试,需要添加日志配置文件,级别调至 debug ,可以很方便排查乱码问题 有时候诡异的问题会出现,org.apache.commons.httpclient.HttpCl 阅读全文

posted @ 2016-08-06 08:20 zno2 阅读(326) 评论(0) 推荐(0)

其实就是这么回事

摘要: 1+2+3+4+5+6+7 = ? ①事物本身 ②分析过程 ③结果 ①③都很简单 唯独② 可以通过步骤分析计算、技巧计算、天马星空联想各种各样的途径 记忆的过程,从左至右,通过中间关联,通过无数次的推导,提升一个层次,模糊掉中间过程,A 直接 B 阅读全文

posted @ 2016-08-06 08:18 zno2 阅读(138) 评论(0) 推荐(0)

Spring 、 CXF 整合 swagger 【试炼】

摘要: 官网:http://swagger.io/ http://swagger.io/specification/ 上面就是描述了什么是 SWAGGER OBJECT 2. 如何用jax-rs 注解方式产生 SWAGGER CORE 3.如何更好的展现 SWAGGER UI 4.如何开始 找找demo 按 阅读全文

posted @ 2016-08-06 08:17 zno2 阅读(1737) 评论(0) 推荐(0)

cxf-rs 和 swagger 的点

摘要: 1. 从web.xml 说起 如果这样配置,所有的请求都走CXF(意思是作为一种资源进行请求) ,就无法访问 swagger UI ,所以不能配置成/* 应该如下配置: 这样做{协议}{host}{port}{项目}{资源} 补充welcome files:http://docs.oracle.co 阅读全文

posted @ 2016-08-06 08:17 zno2 阅读(1684) 评论(0) 推荐(0)

cxf-rs 、spring 和 swagger 环境配置切换【github 有项目】

摘要: 环境切换的目的是 准生产和生产环境切换时,只修改一个文件就可以达到效果 在spring bean 文件中 配置: 在index.jsp 中使用 再进一步: 把"http://localhost:8080/cxf-rs" 值配置到 properties 文件中 spring bean 中 常量文件 使 阅读全文

posted @ 2016-08-06 08:17 zno2 阅读(545) 评论(0) 推荐(0)

(二)swagger-springmvc

摘要: 如何入门 1. 我在 http://mvnrepository.com/ 上搜索 swagger-springmvc 2. 我找到一个具体版本 http://mvnrepository.com/artifact/com.mangofactory/swagger-springmvc/1.0.2 3. 阅读全文

posted @ 2016-08-06 08:17 zno2 阅读(161) 评论(0) 推荐(0)

(二)spring-mvc-showcase 和 swagger-springmvc 的恩恩怨怨

摘要: 1. 搜索 spring showcase 就可以找到这篇 http://spring.io/blog/2010/07/22/spring-mvc-3-showcase 就是教你如何使用spring mvc 2. 去github 下载源码 3. 接下来的任务就是将swagger 整合进去 1. 进入 阅读全文

posted @ 2016-08-06 08:17 zno2 阅读(946) 评论(0) 推荐(0)

svn 创建tag

摘要: 1. 右键项目(源) 2. 选择复制到哪个路径(创建文件夹选项) 3. 选择哪个版本(源的) 4. 填写备注 5. 结束 使用:import 、合并等 阅读全文

posted @ 2016-08-06 08:16 zno2 阅读(1618) 评论(0) 推荐(0)

swagger 入门

摘要: 官网:http://swagger.io/ Swagger UI 下载地址: https://github.com/swagger-api/swagger-ui 文档:README.md ### DownloadYou can use the swagger-ui code AS-IS! No ne 阅读全文

posted @ 2016-08-06 08:16 zno2 阅读(294) 评论(0) 推荐(0)

jax-rs

摘要: https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/index.html http://tools.ietf.org/html/rfc5234 通过java api 注解类生成 RESTful 举例:@Path("/swagger.{type:j 阅读全文

posted @ 2016-08-06 08:16 zno2 阅读(201) 评论(0) 推荐(0)

swagger core 和 swagger ui 如何关联【窥探】

摘要: 几个片段: basePath 是定位到项目的前提下,访问谁 访问谁,访问哪个路径 !IMPORTANT 这个是基于jax-rs 项目整合的 阅读全文

posted @ 2016-08-06 08:16 zno2 阅读(665) 评论(0) 推荐(0)

配置 struts2 时掉进 web.xml 的坑

摘要: 这个声明不好用 这个声明才是struts2 的声明 会产生的问题: ${} EL 表达式无法使用。 这些路径无法获取。 阅读全文

posted @ 2016-08-06 08:15 zno2 阅读(208) 评论(0) 推荐(0)

struts2 action 中autowired 不能注入

摘要: 一、pom.xml 二、struts.xml org.apache.struts2.spring.StrutsSpringObjectFactory action 应该托管给spring 阅读全文

posted @ 2016-08-06 08:15 zno2 阅读(363) 评论(0) 推荐(0)

struts 拦截器

摘要: my-default.xml 说明:这是一个抽象的继承了struts-default.xml(位于struts2-core-xxxx.jar) 的配置文件,使用时需要被继承。 使用该文件配置的拦截器时应该这样用: my-view.xml 阅读全文

posted @ 2016-08-06 08:15 zno2 阅读(121) 评论(0) 推荐(0)

Apache Struts 2 Documentation Core Developers Guide

摘要: http://struts.apache.org/docs/core-developers-guide.html 阅读全文

posted @ 2016-08-06 08:15 zno2 阅读(147) 评论(0) 推荐(0)

Apache Struts 2 Documentation Big Picture

摘要: http://struts.apache.org/docs/big-picture.html 1. HttpServletRequest 穿越各个过滤器到达FilterDispatcher(这个已经不再使用,现在使用StrutsPrepareAndExecuteFilter) 2. 执行doFilt 阅读全文

posted @ 2016-08-06 08:15 zno2 阅读(206) 评论(0) 推荐(0)

JSTL 、 OGNL 与 EL

摘要: JSTL: JSP Standard Tag Library OGNL:Object-Graph Navigation Language EL:Expression Language action 中 import org.apache.struts2.ServletActionContext; i 阅读全文

posted @ 2016-08-06 08:14 zno2 阅读(170) 评论(0) 推荐(0)

struts2 的特征

摘要: web.xml 阅读全文

posted @ 2016-08-06 08:14 zno2 阅读(1068) 评论(0) 推荐(0)

The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

摘要: 多了这两个包,范围改有compile 改成 provided 阅读全文

posted @ 2016-08-06 08:14 zno2 阅读(637) 评论(0) 推荐(0)

web.xml 404 500 配置

摘要: web.xml controller.java spring mvc tree /F 阅读全文

posted @ 2016-08-06 08:13 zno2 阅读(338) 评论(0) 推荐(0)

重大发现 springmvc Controller 高级接收参数用法

摘要: 1. 数组接收 页面: ?ids=1&ids=2&ids=3 2. list 接收 package cn.zno.smse.pojo; import java.io.Serializable; import java.util.List; public class SystemUser implem 阅读全文

posted @ 2016-08-06 08:13 zno2 阅读(862) 评论(0) 推荐(0)

struts2 file

摘要: JavaBean 中: private File[] pic; private String[] picContentType; private String [] picFileName; setter getter Action中: JavaBean javaBean setter getter 阅读全文

posted @ 2016-08-06 08:13 zno2 阅读(97) 评论(0) 推荐(0)

struts2-core-2.3.20.jar

摘要: 核心配置位于该jar struts-default.xml struts-2.3.dtd 阅读全文

posted @ 2016-08-06 08:13 zno2 阅读(805) 评论(0) 推荐(0)

spring mvc 静态资源版本控制

摘要: spring bean 文件中增加 类文件 页面中: 阅读全文

posted @ 2016-08-06 08:12 zno2 阅读(388) 评论(0) 推荐(0)

spring mvc 文档哪里有

摘要: 官方: http://docs.spring.io/spring/docs/4.2.0.RC1/spring-framework-reference/htmlsingle/#spring-web The Web - Web MVC framework - Introduction to Spring 阅读全文

posted @ 2016-08-06 08:11 zno2 阅读(183) 评论(0) 推荐(0)

Spring MVC controller 被执行两次

摘要: interceptor 被执行两次 后来发现 时controller被执行两次 后来发现是jsp页面有个: 导致被执行两次。 解决方案:去掉 阅读全文

posted @ 2016-08-06 08:11 zno2 阅读(1061) 评论(0) 推荐(0)

spring 课程

摘要: 官网 参考文档 阅读全文

posted @ 2016-08-06 08:10 zno2 阅读(228) 评论(0) 推荐(0)

1) Spring_HelloWorld

摘要: 1. Spring Tool Suite™ 方式一:下载对应eclipse版本的文件,离线安装 4.4.2 springsource-tool-suite-3.6.4.RELEASE-e4.4.2-updatesite.zip 87MB 选择 Core / Spring IDE Extensions 阅读全文

posted @ 2016-08-06 08:10 zno2 阅读(218) 评论(0) 推荐(0)

事务不起作用 Closing non transactional SqlSession

摘要: spring文档地址 : http://docs.spring.io/spring/docs/4.2.0.RC1/spring-framework-reference/htmlsingle/#transaction-declarative-annotations 说明: 代理模式中,只拦截外部方法调 阅读全文

posted @ 2016-08-06 08:09 zno2 阅读(13994) 评论(0) 推荐(0)

spring p 标签

摘要: 需要引入命名空间 p 是什么含义 p 是 property 的缩写,为了简化bean的配置 完整项目 依赖 Spring Bean Configuration File [test.xml] java bean 文件 测试类 TestP.java 疑问 p:car 和 p:car-ref 用哪个? 阅读全文

posted @ 2016-08-06 08:09 zno2 阅读(312) 评论(0) 推荐(0)

Spring 获取资源文件路径

摘要: some.properties 位于classes 下 阅读全文

posted @ 2016-08-06 08:09 zno2 阅读(556) 评论(0) 推荐(0)

org.springframework spring-test

摘要: 需要的jar包 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>3.2.3.RELEASE</version> <scope>test</scope> 阅读全文

posted @ 2016-08-06 08:08 zno2 阅读(1481) 评论(0) 推荐(0)

@Autowired 和 @Qualifier

摘要: 一 无冲突 bean工厂 测试主函数 javebean 片段 说明: here1 开启自动注入 here3 通过 new 的方式无法自动注入 here2 从bean工厂取的bean可以自动注入 二有冲突 单元测试: 注意: @Qualifier 必须配合 @Autowired ,否则无法注入 @Qu 阅读全文

posted @ 2016-08-06 08:07 zno2 阅读(505) 评论(0) 推荐(0)

Set List Map

摘要: ... 阅读全文

posted @ 2016-08-06 08:07 zno2 阅读(184) 评论(0) 推荐(0)

spring @Transactional 声明式事务

摘要: 项目地址:git@github.com:witaste/transaction-annotation.git 情景一: A external method calls a method of the target object 外部方法调用目标对象的事务方法,异常逐层抛出,最终由a() 抛出,可以回 阅读全文

posted @ 2016-08-06 08:07 zno2 阅读(7219) 评论(0) 推荐(0)

util:

摘要: 命名空间 xmlns:util="http://www.springframework.org/schema/util" 语法 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/ 阅读全文

posted @ 2016-08-06 08:06 zno2 阅读(93) 评论(0) 推荐(0)

bean 的各个属性

摘要: http://www.springframework.org/schema/beans/spring-beans.xsd org.springframework.beans.factory.config.BeanDefinition 什么是bean Defines a single (usually 阅读全文

posted @ 2016-08-06 08:06 zno2 阅读(1019) 评论(0) 推荐(0)

util:properties

摘要: 示例 全部属性 功能概述 Loads a Properties instance from the resource location specified by the ' <code>location</code> ' attribute. 属性详解 id #{A['B']} A means ut 阅读全文

posted @ 2016-08-06 08:06 zno2 阅读(801) 评论(0) 推荐(0)

加载 bean*.xml

摘要: 入口 最后发现 java.util.regex.Pattern 调用matches() 方法 从而得知 支持正则表达式。 总结: 冒号分析 /** * A {@link ResourcePatternResolver} implementation that is able to resolve a 阅读全文

posted @ 2016-08-06 08:05 zno2 阅读(513) 评论(0) 推荐(0)

加载 bean.xml 的几种方式 (java or web project)

摘要: 1. java project 2. web project 3. Test org.springframework spring-test 阅读全文

posted @ 2016-08-06 08:05 zno2 阅读(267) 评论(0) 推荐(0)

context:propertyPlaceholder

摘要: Activates replacement of ${...} placeholders by registering a PropertySourcesPlaceholderConfigurer within the application context. Properties will be 阅读全文

posted @ 2016-08-06 08:05 zno2 阅读(220) 评论(0) 推荐(0)

Spring MyBatis Oracle 多数据源

摘要: 数据源1 数据源2 注:xx1Mapper.java 和 xx1Mapper.xml 、 xx2Mapper.java 和 xx2Mapper.xml 上下文中不能出现同名的 结果:操作db1 调用 mapper1 ,操作db2 调用 mapper2 配置多数据源时需注意的单元测试问题: 如果 @T 阅读全文

posted @ 2016-08-06 08:04 zno2 阅读(858) 评论(0) 推荐(0)

context:

摘要: Spring Bean Configuration File 命名空间 xmlns:context="http://www.springframework.org/schema/context" 语法 http://www.springframework.org/schema/context htt 阅读全文

posted @ 2016-08-06 08:04 zno2 阅读(91) 评论(0) 推荐(0)

context:annotation-config

摘要: Activates various annotations to be detected in bean classes: Spring's @Required and @Autowired, as well as JSR 250's @PostConstruct, @PreDestroy and 阅读全文

posted @ 2016-08-06 08:04 zno2 阅读(209) 评论(0) 推荐(0)

context:component-scan

摘要: 一、介绍 Scans the classpath for annotated components that will be auto-registered as Spring beans. By default, the Spring-provided @Component, @Repositor 阅读全文

posted @ 2016-08-06 08:04 zno2 阅读(418) 评论(0) 推荐(0)

主键冲突异常 DuplicateKeyException

摘要: org.springframework.dao.DuplicateKeyException Exception thrown when an attempt to insert or update data results in violation of an primary key or uniq 阅读全文

posted @ 2016-08-06 08:04 zno2 阅读(15317) 评论(0) 推荐(0)

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

摘要: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf 阅读全文

posted @ 2016-08-06 08:03 zno2 阅读(526) 评论(0) 推荐(0)

HAService 刨坑

摘要: High availability is a characteristic of a system, which describes the duration (length of time) for which the system is operational. HAService.java 即 阅读全文

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

RocketMQ服务器监控误区

摘要: 请不要监控10912端口 case: result: 监控10912端口会导致HAService异常,新起线程,吃掉内存,无限次监控虚拟机将宕机! 时间上是直接因果关系. 监控10911 和 9876 没有问题. MessageStoreConfig.java 阅读全文

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

Send [1] times, still failed

摘要: 关键代码片段 1. 循环几次发送几次 2. selectOneMessageQueue 返回与上一个broker不同名的broker 3. timesTotal 是brokersSent 数组 4. 某broker发送失败时,如果想要重试其他broker,需要把retryAnotherBrokerW 阅读全文

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

RECONSUME_LATER

摘要: Failure consumption,later try to consume. MessageExt [queueId=0, storeSize=134, queueOffset=2, sysFlag=0, bornTimestamp=1442224189878, bornHost=/172.1 阅读全文

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

RocketMQ 自定义文件路径

摘要: 一 、1. 修改store路径2. 修改logs路径3. 修改rmq_bk_gc.log路径4. 修改rmq_srv_gc.log路径二 、1. 获取正确的rocketmq 源码2. 地址:https://github.com/alibaba/RocketMQ三 、1. 修改store路径: ① 修 阅读全文

posted @ 2016-08-06 08:01 zno2 阅读(3839) 评论(0) 推荐(0)

RocketMQ 运维指令

摘要: 1.1. 控制台使用 RocketMQ 提供有控制台及一系列控制台命令,用于管理员对主题,集群,broker 等信息的管理 登录控制台 首先进入RocketMQ 工程,进入/RocketMQ/bin 在该目录下有个mqadmin 脚本 查看帮助 在mqadmin 下可以查看有哪些命令 sh mqad 阅读全文

posted @ 2016-08-06 08:01 zno2 阅读(6190) 评论(0) 推荐(0)

RocketMQ runbroker.sh 分析JVM启动参数

摘要: runbroker.sh -server By default, all client applications run in -client mode, while the directory server and certain server utilities run in -server m 阅读全文

posted @ 2016-08-06 08:01 zno2 阅读(1372) 评论(0) 推荐(0)

RocketMQ broker jvm 监控

摘要: 1. jps 获取要监控broker jvm 的进程ID jsp 2. nohup 输出监控日志 nohup jstat -gc -t [pid] [interval] -t 会在每一条记录前加时间戳,执行命令间隔interval(毫秒) 3. 想要结束监控时Ctrl+C 4. 查看日志 cat n 阅读全文

posted @ 2016-08-06 08:01 zno2 阅读(709) 评论(0) 推荐(0)

RocketMQ 服务器3模式

摘要: 22 a b-s sh mqbroker -c $ROCKETMQ_HOME/conf/2m-2s-async/broker-a.properties &sh mqbroker -c $ROCKETMQ_HOME/conf/2m-2s-async/broker-b-s.properties & 23 阅读全文

posted @ 2016-08-06 08:01 zno2 阅读(216) 评论(0) 推荐(0)

问题:虚拟机老生代垃圾回收频繁出现

摘要: case: runbroker.sh JAVA_OPT 使用的是默认参数,broker运行过程中新生代垃圾回收次数较少,频繁出现老生代垃圾回收 cms gc ,并且老生代内存回收不掉。造成卡顿、消息发送失败。最终导致java heap 被占用完,broker 宕机。求教! 内存分析: broker瘫 阅读全文

posted @ 2016-08-06 08:01 zno2 阅读(454) 评论(0) 推荐(0)

RocketMQ 使用及常见问题

摘要: 前言 本文档是针对RocketMQ使用及常见问题的说明。 一.获取项目、安装包及文档 1. alibaba/RocketMQ https://github.com/alibaba/RocketMQ 2. Download the latest release package https://gith 阅读全文

posted @ 2016-08-06 08:00 zno2 阅读(9284) 评论(0) 推荐(1)

RocketMQ 加载配置文件

摘要: BrokerStartup.java MixAll.java 由资源文件生成对象: 首先获取资源文件 获取对象的所有set开头的方法 截取方法,如:setMethod1 则为 method1 通过key获取properties文件value 获取该方法参数类型 调用该方法。 从而完成set 。 阅读全文

posted @ 2016-08-06 08:00 zno2 阅读(764) 评论(0) 推荐(0)

字母数字组合 正则

摘要: http://www.w3school.com.cn/jsref/jsref_obj_regexp.asp/^[0-9a-zA-Z]*$/g 阅读全文

posted @ 2016-08-06 08:00 zno2 阅读(359) 评论(0) 推荐(0)

生成字母+数字6位字符串

摘要: package test; import java.util.Random; import java.util.regex.Pattern; public class CodeUtil { public static final char[] CHARS = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B'... 阅读全文

posted @ 2016-08-06 08:00 zno2 阅读(346) 评论(0) 推荐(0)

eclipse find 两位数

摘要: 查找两位数 阅读全文

posted @ 2016-08-06 08:00 zno2 阅读(104) 评论(0) 推荐(0)

空白行 ,空白

摘要: \n\s*\r 应用: 搜索结果: 额外应用,消除xml文件的空白 阅读全文

posted @ 2016-08-06 08:00 zno2 阅读(163) 评论(0) 推荐(0)

http://www.rabbitmq.com/

摘要: 什么是RabbitMQ 官网http://www.rabbitmq.com/ 1.应用程序间健壮的消息发送 2.简单易用 3.可在所有主流操作系统运行 4.支持巨量的开发者平台 5.开源和商用双重支持 下载server http://www.rabbitmq.com/download.html ja 阅读全文

posted @ 2016-08-06 07:59 zno2 阅读(219) 评论(0) 推荐(0)

安装及运行 RabbitMQ 服务器 (linux) 失败! 安装erlang 失败,无法继续

摘要: 文档 http://www.rabbitmq.com/install-rpm.html 安装前置条件 Before installing RabbitMQ, you must install Erlang. 下载RabbitMQ 提供的 erlang-17.4-1.el6.x86_64.rpm 比其 阅读全文

posted @ 2016-08-06 07:59 zno2 阅读(1034) 评论(0) 推荐(0)

安装及运行 RabbitMQ 服务器 (windows)

摘要: 1. 一些网址 http://www.rabbitmq.com/ http://www.rabbitmq.com/install-windows.html http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.4/rabbitmq-server- 阅读全文

posted @ 2016-08-06 07:59 zno2 阅读(269) 评论(0) 推荐(0)

RabbitMQ client ( java )

摘要: Maven 依赖 GitHub https://github.com/rabbitmq/rabbitmq-java-client/archives/master 文档 http://www.rabbitmq.com/getstarted.html 基本概念理解 A producer a progra 阅读全文

posted @ 2016-08-06 07:59 zno2 阅读(329) 评论(0) 推荐(0)

task:scheduled cron 合法

摘要: http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger.html task:scheduled org.springframework.scheduling.support.CronSequence 阅读全文

posted @ 2016-08-06 07:58 zno2 阅读(848) 评论(0) 推荐(0)

一)get started with the Quartz project

摘要: 官网 http://www.quartz-scheduler.org/ 下载链接 http://www.terracotta.org/download/reflector.jsp?b=tcdistributions&i=quartz-2.2.2-distribution.tar.gz 提示 开源产品 阅读全文

posted @ 2016-08-06 07:58 zno2 阅读(254) 评论(0) 推荐(0)

二)quartz.properties

摘要: The Properties File Quartz uses a properties file called (kudos on the originality) quartz.properties. This isn't necessary at first, but to use anyth 阅读全文

posted @ 2016-08-06 07:58 zno2 阅读(140) 评论(0) 推荐(0)

三)Wiring up jobs using triggers and the SchedulerFactoryBean

摘要: 示例地址: https://github.com/witaste/quartz.git 两种触发器:简单的触发器和cron表达式触发器 阅读全文

posted @ 2016-08-06 07:58 zno2 阅读(219) 评论(0) 推荐(0)

四)Spring + Quartz

摘要: 使用Quartz默认配置 /* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may no 阅读全文

posted @ 2016-08-06 07:58 zno2 阅读(479) 评论(0) 推荐(0)

五)Spring + Quartz 复杂业务的两个问题:获取Spring上下文 和 自动注入服务类

摘要: 配置如下: 为什么要配置这个 因为可以通过这个key取到Spring上下文。 配置1存在的问题:不能自动注入。 配置一改:解决自动注入问题 change to cn.zno.common.SpringBeanJobFactory 另一种实现方式为: 阅读全文

posted @ 2016-08-06 07:58 zno2 阅读(939) 评论(0) 推荐(0)

六)定时任务持久化

摘要: If you're using JDBC-Jobstore, you will need a DataSource for its use. It is recommended that your DataSource max connection size be configured to be 阅读全文

posted @ 2016-08-06 07:58 zno2 阅读(417) 评论(0) 推荐(0)

公钥私钥

摘要: (原版) 阅读全文

posted @ 2016-08-06 07:57 zno2 阅读(136) 评论(0) 推荐(0)

域名如何绑定IP

摘要: 以 http://www.xinnet.com/ 为例 1.登陆新网,进入域名管理,解析 2.进入mydns 添加新的A记录 填写主机名比如:www.xxx.com 填写对应的ip地址:xxx.xxx.xx.xxx 3.还可以设置 转发、别名 ps:什么是DNS https://en.wikiped 阅读全文

posted @ 2016-08-06 07:57 zno2 阅读(703) 评论(0) 推荐(0)

SSH 密钥登录 SecureCRT

摘要: https://www.qcloud.com/doc/product/213/2036 1.3. 使用SecureCRT登录 1.3.1. 复制公钥 登录腾讯云控制台,点击【云服务器】-【SSH密钥】进入密钥窗口。点击您绑定了Linux云服务器的SSH密钥ID,进入密钥详情页,复制公钥信息。 将公钥 阅读全文

posted @ 2016-08-06 07:57 zno2 阅读(522) 评论(0) 推荐(0)

文档中心 —— 自行查询关键字

摘要: https://www.qcloud.com/doc/product 阅读全文

posted @ 2016-08-06 07:57 zno2 阅读(135) 评论(0) 推荐(0)

oracle问题:新建了一个PDM文件,建表后生成的sql语句中含有clustered

摘要: 问题描述 为了在oracle中新增表,在PDM中建表,使用其生成的sql语句,但是建表不能成功,提示 ORA-00906: 缺失左括号 原因是多了clustered 关键字 情景重现 1. 新建一个pdm文件 2. 建表后预览sql 是有clustered 这个关键字的 3. 建表时报错 问题解决 阅读全文

posted @ 2016-08-06 07:56 zno2 阅读(605) 评论(0) 推荐(0)

google/protobuf hello world

摘要: /(ㄒoㄒ)/~~ 官网被墙 1. github > Search > protobuf or protocol buffers 2.https://github.com/google/protobuf 3. releases 4. protoc-3.0.0-alpha-2-win32.zip re 阅读全文

posted @ 2016-08-06 07:56 zno2 阅读(1062) 评论(0) 推荐(0)

Introduction MBG

摘要: 文档地址 http://www.mybatis.org/generator/configreference/xmlconfig.html 源码地址 https://github.com/mybatis/generator 阅读全文

posted @ 2016-08-06 07:55 zno2 阅读(122) 评论(0) 推荐(0)

从命令行运行 MyBatis Generator

摘要: ? ? 一、准备 1. 获取最新jar包 2. 获取xml dtd <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed under the Apache License, Version 2.0 (the "License"); you may 阅读全文

posted @ 2016-08-06 07:55 zno2 阅读(920) 评论(0) 推荐(0)

Introduction mybatis

摘要: 项目地址 https://github.com/mybatis/mybatis-3 英文官网 http://mybatis.github.io/mybatis-3/ 中文官网 http://mybatis.github.io/mybatis-3/zh/index.html 生成工具 https:// 阅读全文

posted @ 2016-08-06 07:55 zno2 阅读(146) 评论(0) 推荐(0)

spring 整合 mybatis (不含物理分页)

摘要: http://www.mybatis.org/spring/mappers.html http://www.mybatis.org/spring/zh/mappers.html 关于 basePackage 第一,支持正则: 如果 value 为 com.lzkj.zsl.clubber.serve 阅读全文

posted @ 2016-08-06 07:54 zno2 阅读(179) 评论(0) 推荐(0)

导航