Spring
Spring
时间辜负了谁
成功思维者,是把“不可能”变成“可能”
展开
-
servletListener中获取spring bean的方法
一、简单1、定义一个类实现ServletContextListener接口,利用WebApplicationContextUtils类获得上下文环境 package com.ww.commons.web;import javax.servlet.ServletContextEvent;import javax.servlet.ServletContextListener;i...原创 2014-12-28 14:04:11 · 4035 阅读 · 0 评论 -
Spring 注解1
Spring mvc特点:1.功能组件划分细致(解耦,模块化)2.灵活、强大3.设计思想优秀原创 2015-01-15 17:50:17 · 690 阅读 · 0 评论 -
web项目开发,字典表信息工具类
在进行web项目开发时,一个系统往往有一些数据不是经常变化的,我们可以采用web项目启动服务时就加载,这样避免多次操作数据库。1、定义ContextLoaderListener,我们在启动服务时就加载数据InitSysDictListener.java package com.ww.commons.web;import java.util.List;import java...原创 2015-01-05 20:49:18 · 4465 阅读 · 0 评论 -
spring中获得sesion的工具类
开发中我们常常会用到session,但是传统的获取session的方法不是很灵活。。。直接贴上源码:package com.ibs.gbplatform.common.util;import org.springframework.web.context.request.RequestContextHolder;import org.springframework.web.conte原创 2015-11-20 17:10:48 · 1696 阅读 · 0 评论