2014-11-26 14:05:56 [org.springframework.web.context.support.XmlWebApplicationContext]-[WARN] Exception encountered during context initialization - ca...
分类:
编程语言 时间:
2014-11-26 16:12:13
阅读次数:
518
当我们需要使用BeanPostProcessor时,直接在Spring配置文件中定义这些Bean显得比较笨拙,例如:
使用@Autowired注解,必须事先在Spring容器中声明AutowiredAnnotationBeanPostProcessor的Bean:
bean class="org.springframework.beans.factory.annotation.Auto...
分类:
编程语言 时间:
2014-11-26 14:24:19
阅读次数:
206
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'masterDataSource' defined in file [C:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\w...
分类:
数据库 时间:
2014-11-23 19:02:50
阅读次数:
1917
package com.chengxi.qs.service;
/***
* 执行的业务逻辑类
* @author wzh
*
*/
public class JobTask {
public void work(){
System.out.println("正在调度任务...");
}
}
<beans xmlns="http://www.springframework.o...
分类:
编程语言 时间:
2014-11-21 18:54:26
阅读次数:
198
关于在Spring中的任务计划的使用我今天结合Spring技术手册中的内容,总共总结了5个方面:1:使用最简单的任务计划,就是继承java.util.TimerTask类,最关键的当然是配置beans-config.xml 文件了,因为我们使用的是spring来管理任务计划。 继承TimerTask...
分类:
编程语言 时间:
2014-11-21 14:15:06
阅读次数:
254
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.sprin...
分类:
数据库 时间:
2014-11-20 17:02:58
阅读次数:
279
学习了下springjdbc,感觉挺实用的,相对来说springjdbc 扩展性相当好了
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.fact...
分类:
数据库 时间:
2014-11-20 10:23:53
阅读次数:
290
1.Json-lib介绍 Json-lib是一个java类库,它用于把beans, maps, collections, java arrays and XML 传递给一个Json,或者返回来把Json来传递beans, maps, collections, java arrays and XML....
分类:
Web程序 时间:
2014-11-19 20:18:00
阅读次数:
317
上午把一个应用部署到SAE上,结果访问503错误。关键日志:----------------------------------------------------org.eclipse.jetty.servlet.ServletHolder$1: org.springframework.beans...
分类:
其他好文 时间:
2014-11-19 10:42:48
阅读次数:
258
研究spring3的时候发现一个很好用的特性:环境配置(spring2是否有此特性未知)
官方示例代码如下:
app-config.xml -->
beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" x...
分类:
编程语言 时间:
2014-11-17 14:07:00
阅读次数:
123