zno2

2016年8月5日 #

memCachedClient 客户端调用时注意的问题,坑

摘要: // 第三个参数为计算该消息在服务器存放位置用 memCachedClient.add("someKey", "someValue", 10*24*60*60*1000); // 第三个参数为该消息在服务器存放时间,毫秒 memCachedClient.add("someKey", "someValue", new Date(10*24*60*60*1000)); 阅读全文

posted @ 2016-08-05 17:51 zno2 阅读(258) 评论(0) 推荐(0) 编辑

二)spring 集成 ehcache jgroups 集群

摘要: 依赖 项目结构 applicationContext-Ehcache.xml ehcache.xml (详细解释请看jgroups) bean 及 服务类: PersonService.java PersonServiceImpl.java 测试类: show()运行结果: create()运行结果 阅读全文

posted @ 2016-08-05 17:50 zno2 阅读(1365) 评论(0) 推荐(0) 编辑

三)mybatis 二级缓存,整合ehcache

摘要: mybatis-config.xml PersonMapper.xml 所处位置 PersonMapper.xml 中禁用单个sql语句的缓存 依赖 日志 初始化 GMS: address=pc012-44159, cluster=EH_CACHE, physical address=172.16. 阅读全文

posted @ 2016-08-05 17:50 zno2 阅读(571) 评论(0) 推荐(0) 编辑

四)mybatis 二级缓存 ehcache 常见问题

摘要: 1. java.io.NotSerializableException 解决办法:将java bean 实现序列化接口 请留意:element 的key值和value值! 阅读全文

posted @ 2016-08-05 17:50 zno2 阅读(374) 评论(0) 推荐(0) 编辑

都有哪些 cache ?

摘要: 1. spring http://www.springframework.org/schema/cache 2. ehcache LOGO关键词:palindrome [ˈpælɪndrəʊm] 正读和倒读都一样的词 A simple, fast, thread safe, standards ba 阅读全文

posted @ 2016-08-05 17:49 zno2 阅读(244) 评论(0) 推荐(0) 编辑

一)如何开始 ehcache ?

摘要: 官网地址 http://www.ehcache.org/ 从哪开始 http://www.ehcache.org/downloads/ 下载 Ehcache 2.10.0 .tar.gz 解压之后得到 ehcache.xml http://www.ehcache.org/ehcache.xsd ht 阅读全文

posted @ 2016-08-05 17:49 zno2 阅读(853) 评论(0) 推荐(0) 编辑

tomcat 配置图片服务器

摘要: 参考文档 http://tomcat.apache.org/tomcat-8.0-doc/config/context.html The Context element represents a web application, which is run within a particular vi 阅读全文

posted @ 2016-08-05 17:48 zno2 阅读(474) 评论(0) 推荐(0) 编辑

Cache Algorithms

摘要: 1. 平均内存引用时间 T = average memory reference time m = miss ratio = 1 - (hit ratio) Tm = time to make a main memory access when there is a miss (or, with m 阅读全文

posted @ 2016-08-05 17:48 zno2 阅读(187) 评论(0) 推荐(0) 编辑

shiro 和 spring

摘要: site:shiro.apache.org spring http://shiro.apache.org/spring.html 阅读全文

posted @ 2016-08-05 17:46 zno2 阅读(116) 评论(0) 推荐(0) 编辑

Tomcat 环境变量配置

摘要: 1.变量和常量 i 和 0 2.环境变量 cmd >set 查看所有环境变量 %PATH% 系统指定可执行文件的搜索路径,可以是 .exe .bat String path=“C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;”; public String 阅读全文

posted @ 2016-08-05 17:46 zno2 阅读(183) 评论(0) 推荐(0) 编辑

No cache or cacheManager properties have been set. Authorization cache cannot be obtained.

摘要: 原因是:自定义的Realm文件在继承AuthorizingRealm 时,没有设置cache或者cacheManager属性 解决办法有两种: 1.是关闭cache 2.是设置cache或者cacheManager 必须是实现了 org.apache.shiro.cache.CacheManager 阅读全文

posted @ 2016-08-05 17:45 zno2 阅读(3317) 评论(0) 推荐(0) 编辑

Shiro 登录页面的几个固定字段

摘要: http://shiro.apache.org/webapp-tutorial.html 阅读全文

posted @ 2016-08-05 17:45 zno2 阅读(308) 评论(0) 推荐(0) 编辑

Shiro ini 过滤器

摘要: http://shiro.apache.org/web.html#Web-WebINIconfiguration Filter NameClass anon org.apache.shiro.web.filter.authc.AnonymousFilter authc org.apache.shir 阅读全文

posted @ 2016-08-05 17:45 zno2 阅读(252) 评论(0) 推荐(0) 编辑

shiro 运行流程

摘要: 单词词性解释 authentication n. 认证 authentic adj. 真实的 authorization n. 授权 authorise vt. 授权 authentication 你是谁 authorization 你能做什么 认证流程(可以在controller中进行,也可以在f 阅读全文

posted @ 2016-08-05 17:43 zno2 阅读(101) 评论(0) 推荐(0) 编辑

手机添加自定义声音

摘要: 将声音文件RunnerWhat5.wav(示例)放到目录下(可自己新建) /media/audio/notifications/ 就可以了! 阅读全文

posted @ 2016-08-05 17:42 zno2 阅读(281) 评论(0) 推荐(0) 编辑

怎么找例子

摘要: 官网:https://poi.apache.org/ 点击:Excel(SS=HSSF+XSSF) 点击:Examples https://poi.apache.org/spreadsheet/examples.html 或者site:poi.apache.org examples 使用: 然后将e 阅读全文

posted @ 2016-08-05 17:41 zno2 阅读(199) 评论(0) 推荐(0) 编辑

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 阅读(418) 评论(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 阅读(265) 评论(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 阅读(420) 评论(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 阅读(1547) 评论(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 阅读(373) 评论(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 阅读(648) 评论(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 阅读(192) 评论(0) 推荐(0) 编辑

maven项目诡异的问题

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

posted @ 2016-08-02 22:16 zno2 阅读(113) 评论(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 阅读(836) 评论(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 阅读(84) 评论(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 阅读(175) 评论(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 阅读(558) 评论(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 阅读(315) 评论(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 阅读(158) 评论(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 阅读(1160) 评论(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 阅读(151) 评论(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 阅读(498) 评论(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 阅读(307) 评论(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 阅读(464) 评论(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 阅读(220) 评论(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 阅读(542) 评论(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 阅读(214) 评论(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 阅读(166) 评论(0) 推荐(0) 编辑

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

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

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

导航