摘要: 首先要引入xsd:<beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/p"xmlns:task="http://www.springframework.org/schema/task"xsi:schemaLocation="http://ww 阅读全文
posted @ 2013-06-19 15:16 尹剑平 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 一个Cron-表达式是一个由六至七个字段组成由空格分隔的字符串,其中6个字段是必须的而一个是可选的,如下:字段允许值允许的特殊字符秒0-59, - * /分0-59, - * /小时0-23, - * /日期1-31, - * ? / L W C月份1-12或者 JAN-DEC, - * /星期1-7或者 SUN-SAT, - * ? / L C #年(可选)留空, 1970-2099, - * /'L'字符可用在“日”和“周几”这两个字段。它是"last"的缩写, 但是在这两个字段中有不同的含义。例如,“日”字段中的"L"表示" 阅读全文
posted @ 2013-06-19 15:11 尹剑平 阅读(329) 评论(0) 推荐(0) 编辑
摘要: ContextLoaderListener的作用就是启动Web容器时,自动装配ApplicationContext的配置信息。因为它实现了ServletContextListener这个接口,在web.xml配置这个监听器,启动容器时,就会默认执行它实现的方法。至于ApplicationContext.xml这个配置文件部署在哪,如何配置多个xml文件,书上都没怎么详细说明。现在的方法就是查看它的API文档。在ContextLoaderListener中关联了ContextLoader这个类,所以整个加载配置过程由ContextLoader来完成。看看它的API说明第一段说明ContextLo 阅读全文
posted @ 2013-06-19 14:50 尹剑平 阅读(176) 评论(0) 推荐(0) 编辑