`
ruijf
  • 浏览: 69517 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论
文章列表
Spring对任务调度框架Quartz做了很好的封装,开发人员基本上只要实现具体的JOB类即可,且JOB类可以是POJO。其他的均可以声明配置。 <!-- 任务 --> <bean id="helloWorldJob" class="com.test.job.HelloWorldJob"> </bean> <!-- 任务触发器 --> <bean id="helloWorldTrigger" class="org.springframework.s ...
spring JMS对于异步消息处理基本上只需配置下就能进行高效的处理。其核心就是消息侦听器容器,常用的类就是DefaultMessageListenerContainer。该容器可配置侦听器的并发数量,以及配合MessageListenerAdapter使用消息驱动POJO进行消息处理。且消息驱动POJO是放入TaskExecutor中进行处理,进一步提高性能,减少侦听器的阻塞。具体配置如下: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.s ...
一.How 1.创建配置文件的类,然后使用spring配置导出成MBean。 (1)创建配置类(基于spring管理的话其实就是POJO,不用实现MBean接口) public class ParseHandlerMap{ private Logger logger =Logger.getLogger(this.getClass()); private Map<String, IUrlParseHandler> parseMap; private Map<String, String> loginURLMap; private String de ...
1.下载ipython http://ipython.scipy.org/dist/0.10.1/ipython-0.10.1.tar.gz 2.安装 tar zxvf xxxxx cd xxx python setup.py install 3.由于自己装的是python2.7 ipyhton 是在python2.7的bin目录里,可以建个软连 4.ipython 运行,发现方向键和tab无法使用,需要安装readline 5. 使用easy_install readline 报 gcc readline/libhistory.a找不到, 6.进入readline目录 ...
pylibmc安装过程就像个递归调用,要安装pylibmc需要先安装libmemcached,安装libmemcached又需要先安装memcached,安装memcached又要先安装libevent。以下是安装过程 1。安装libevent ./configure && make && make install 默认安装的需要做个软连:/usr/lib/libevent-1.3.so.1 -> /usr/local/lib/libevent-1.3.so.1。1.3是版本号 2。安装memcached ./configure &&am ...
#!/bin/bash #得到命令变量 PRG="$0" #得到执行命令的路径 PRGDIR=`dirname "$PRG"` #如果CATALINA_HOME为空,设置CATALINA_HOME为执行命令的父目录路径 [ -z "$CATALINA_HOME" ] && CATALINA_HOME=`cd "$PRGDIR/.." ; pwd` kill -9 `ps aux |grep $CATALINA_HOME |grep -v grep|awk '{print $2} ...
tomcat默认使用java.util.logging记录日志,默认只记录tomcat的日志,不记录应用的日志。tomcat支持采用log4j进行日志记录,配置方法如下: 1.更新最新的tomcat_juli.jar包到./bin/目录下; 2.拷贝log4j.jar,lo4j.properties到./lib目录下; 3.删除./conf/logging.properties 4.重启 log4j配置样本 log4j.rootLogger=INFO,CATALINA log4j.logger.com.danga.MemCached.MemCachedClient=WARN,CAT ...
1.如何在spring的配置文件中直接配置一个MAP? xml需加入spring的util schema,加入后即可使用。声明list,set同理。 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" ...
摘自 http://www.sudone.com/nginx/nginx_rewrite_last_break.html 在实际配置中,有的地方用last并不能工作,换成break就可以,其中的原理是对于根目录的理解有所区别,按我的测试结果大致是这样的。#location / {#proxy_pass http://test;#alias /home/html/;#root /home/html;#rewrite "^/a/(.*)\.html$" /1.html last;#}在#location / { 配置里:1、使用root指定源:使用last和break都可以2、 ...
1.cookie并不是http协议的一部分,是浏览器与服务器交互信息的一种技术; 2.服务端设定一个cookie时("c1","aaaaaa","/test/","woniu.com"),会发出"Set-Cookie: c1=aaaaaaa; Domain=woniu.com; Path=/test/" 指令,浏览器便会在磁盘上创建1个相应的文件; 3.浏览器向服务器发出请求时,浏览器会按照当前的域名和path过滤,将符合条件的cookie放入header中。header中就会带有" ...
http://wiki.cwowaddon.com/WoWAPI
测试1:openSession在不开启事务的情况下执行操作 Session session= SessionFactoryUtil.openSession(); (1):session.get(UserInfo.class,14L); //执行成功,得到数据 (2):session.delete(new UserInfo(16L)); //执行成功 但数据库数据不变(符合逻辑) session.close();   追溯了下源码发现: 在不开启事务的情况下,session得到数据库连接是在执行查询语句的时候从连接池中获得。 private PreparedStatement ge ...
select * from effort e left outer join(select ue.effId id from user_effort ue where ue.userId=1) ut on e.effId = ut.id where ut.id is null;
tld文件放入META-INF中取名taglib.tld web.xml中配置 <jsp-config><taglib><taglib-uri>XXXX</taglib-uri><taglib-location>/WEB-INF/lib/包名.jar</taglib-location></taglib> </jsp-config>
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin>
Global site tag (gtag.js) - Google Analytics