码迷,mamicode.com
首页 >  
搜索关键字:beans    ( 2634个结果
Maven实战——聚合与继承(中)
依赖管理 上一节我们说到可以继承dependencies元素,我们很容易想到把这一特性应用到accout-parent中。子模块account-email和account-persist同时依赖了org.springframework:spring-core:2.5.6,spring-beans:2.5.6,spring-context:2.5.6,junit:junit:4.7。以此可以将这些公...
分类:其他好文   时间:2015-06-04 11:48:55    阅读次数:145
spring-simple-cache的那些事
?spring-simple-cache的那些事 <?xml?version="1.0"?encoding="UTF-8"?> <beans?xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cac...
分类:编程语言   时间:2015-06-03 14:01:03    阅读次数:206
spring3 + mybatis + maven:junit测试错误
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [G:\workspaces\workspace_gmq\springmvc....
分类:编程语言   时间:2015-06-03 06:05:54    阅读次数:334
cvc-elt.1: Cannot find the declaration of element 'ehcache'.
在Spring项目中配置缓存时出现异常: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from file [D:\workspaces\eclipse_svn\NewsPortalProject\WebContent\WEB-INF\classe...
分类:系统相关   时间:2015-06-02 17:56:46    阅读次数:705
Another unnamed CacheManager already exists in the same VM
解决办法:将缓存的配置文件和其他的配置文件放在不同包下 1.缓存测试用例中,实例化容器时,只读缓存相关的配置文件; ApplicationContext aCtx = new FileSystemXmlApplicationContext("classpath:ehcache/*.xml"); 2.其他用例也只读自己的配置文件; ApplicationContext aCtx = new FileSystemXmlApplicationContext("classpath:config/*.xml");...
分类:系统相关   时间:2015-06-02 17:52:20    阅读次数:166
spring读取.properties文件
<beanid="propertyConfigurer"class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><propertyname="location"value="/WEB-INF/jdbc.properties"/></bean>
分类:编程语言   时间:2015-06-01 01:04:10    阅读次数:197
Spring2.5学习2.2_编码剖析Spring依赖注入原理
为了便于理解Spring属性注入,这里来模拟Spring容器是如何实现将PersonDaoBean注入到PersonServiceBean的。 所需jar包:下载地址http://download.csdn.net/detail/jeofey/8747927 PersonDaoBean.java [java] view plaincopy ...
分类:编程语言   时间:2015-05-31 18:33:00    阅读次数:186
org.springframework.beans.factory.BeanCreationException
java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorA...
分类:编程语言   时间:2015-05-31 12:23:28    阅读次数:120
关于spring注解式事务
使用步骤: 步骤一、在spring配置文件中引入<tx:>命名空间 <beans xmlns="http://www.springframework.org/schema/beans" ?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ?xmlns:tx="http://www.spri...
分类:编程语言   时间:2015-05-30 14:59:36    阅读次数:123
工作总结之添加数据库
1.首先在idb中新建任务--表结构变更,在里面设计好后,同步到线下数据库。2.在main/resources里添加sqlmap_dingtalk.xml文件,然后在sqlmap-config中注册该文件3.在cuntaocenter-core核心库里的resources的文件beans-persi...
分类:数据库   时间:2015-05-29 19:55:00    阅读次数:245
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!