码迷,mamicode.com
首页 >  
搜索关键字:applicationcontext    ( 2092个结果
【@ContextConfiguration】java世界的那些注解
@ContextConfiguration Spring整合JUnit4测试时,使用注解引入多个配置文件单个文件 @ContextConfiguration(Locations="../applicationContext.xml") @ContextConfiguration(classes =....
分类:编程语言   时间:2015-08-05 17:45:54    阅读次数:212
《Android笔记3.6》 Android 中 Context 的理解及使用
课程背景:Context 是 Android 中一个非常重要的概念,用于访问全局信息,几乎所有的基础组件都继承自 Context,理解 Context 对于学习 Android 四大基本组件非常有帮助。核心内容:1.理解 Context2.理解 ApplicationContext 的作用用于访问全...
分类:移动开发   时间:2015-08-05 12:41:22    阅读次数:171
Spring AOP的实现
以下是一个有主函数的简单类:主要作用就是入口 package?com.wkj.aop; import?org.springframework.context.ApplicationContext; import?org.springframework.context.support.ClassPathXmlApplicationContex...
分类:编程语言   时间:2015-08-05 01:20:49    阅读次数:140
spring将service添加事务管理,在applicationContext.xml文件中的设置
在applicationContext.xml文件中的设置为: 1 2 3 4 5 6 7 com.lcsoft.mobile.bean 8 9 ...
分类:移动开发   时间:2015-08-03 18:45:10    阅读次数:115
Spring面试题一
目录一、Spring工作原理二、为什么要用Spring三、请你谈谈SSH整合四、介绍一下Spring的事务管理五、什么是依赖注入,依赖注入的作用是什么?六、什么是AOP,AOP的作用是什么?七、Spring中的BeanFactory与ApplicationContext的作用有哪些?八、连接池九、跨...
分类:编程语言   时间:2015-08-02 16:41:26    阅读次数:153
解决配置数据库时Could not load JDBC driver class问题
运用Spring+Hibenate+Struts2+Oracle数据库时;出现这种错误的应该先检查applicationContext文件下的 oracle.jdbc.OracleDriver 是否配置正确,然后将ojdbc6.jar导入Tomcat文件夹下的lib文件夹下。
分类:数据库   时间:2015-08-01 20:28:55    阅读次数:159
在springmvc项目中使用kaptcha生成验证码
Kaptcha验证码 下载kaptcha-2.3.2.jar http://code.google.com/p/kaptcha/downloads/list 1.spring 配置文件?applicationContext.xml [html] ???? ????<bean?id="captchaProducer"?class="com.google...
分类:编程语言   时间:2015-08-01 10:10:14    阅读次数:143
junit测试spring头部注入方式
@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = { "classpath:/applicationContext.xml" })@TestExecutionListeners({ DependencyI...
分类:编程语言   时间:2015-07-31 21:52:15    阅读次数:147
SpringMVC 入门教程知识
SpringMVC 入门知识一、SpringMVC入门介绍 springMVC代替struts2去整合hibernate实现功能的框架。使用springMVC有两个配置文件需要配置,一 个是applicationContext.xml、另一个是web.xml,在applicationContext....
分类:编程语言   时间:2015-07-31 17:38:29    阅读次数:118
002-web.xml配置其他框架
1.配置spring 1.1.步骤 1、加载配置文件。 2、设置启动方式。 1.2.加载配置文件 web-inf下加载单个文件: contextConfigLocation /WEB-INF/applicationContext.xml web-inf...
分类:Web程序   时间:2015-07-28 17:39:39    阅读次数:171
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!