码迷,mamicode.com
首页 >  
搜索关键字:springframework    ( 4755个结果
在普通类中获取Spring管理的bean
1、在项目中添加下面的类: import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; /** * 以静态变量保存Sp...
分类:编程语言   时间:2014-08-12 08:58:43    阅读次数:163
springmvc配置
web.xml文件 opensessioninview org.springframework.orm.hibernate4.support.OpenSessionInViewFilter opensessioninview /* ...
分类:编程语言   时间:2014-08-11 17:29:32    阅读次数:343
[Spring Framework]学习笔记--@Component等stereotype的基础
在继续讲解Spring MVC之前,需要说一下常用的几个用来标记stereotype的annotation。@Component,@Controller,@Repository,@Service。这四个都在org.springframework.stereotype包下面,后面3个都属于@Compo...
分类:编程语言   时间:2014-08-11 14:51:52    阅读次数:243
详解SSH注解配置,bean注解、事物注解等
使用过SSH注解的屌丝们都知道,要想使用注解需要在applicationContext.xml配置文件里面开启注解配置,开启方式如下:1.头部声明需加入xmlns:context="http://www.springframework.org/schema/context"http://www.sp...
分类:其他好文   时间:2014-08-11 14:33:32    阅读次数:261
[Spring MVC]学习笔记--DispatcherServlet
在上一篇我们介绍了Servlet,这一篇主要来看一下MVC中用到的DispatcherServlet(继承自HttpServlet)。1. DispatcherServlet在web.xml中被声明。 example org.springframework.web...
分类:编程语言   时间:2014-08-10 21:19:40    阅读次数:258
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...
分类:编程语言   时间:2014-08-10 10:31:10    阅读次数:373
Struts2的声明式异常处理
1、例如SSH中在数据库连接失败时进行增删查改,会出现org.springframework.transaction.CannotCreateTransactionException的问题(1)、在可能出现错误的方法throws public Session getSession() thro...
分类:其他好文   时间:2014-08-09 18:08:58    阅读次数:174
Spring 读取 properties
一、只读取单个 properties 文件1、在 spring 的配置文件中,加入引入命名空间:xmlns:util="http://www.springframework.org/schema/util"xsi:schemaLocation="http://www.springframework....
分类:编程语言   时间:2014-08-08 20:51:06    阅读次数:259
Mingyang.net:org.springframework.context.annotation.ConflictingBeanDefinitionException
org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'configController' for bean class [net.mingy...
分类:编程语言   时间:2014-08-08 11:50:15    阅读次数:464
No bean named 'cxf' is defined
1、错误描述  严重:Exception starting filter CXFServlet        org.springframework.beans.factory.NoSuchBeanDefinitionException:No bean named 'cxf' is defined 2、错误原因 3、解决办法...
分类:其他好文   时间:2014-08-08 02:05:55    阅读次数:554
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!