
spring
文章平均质量分 66
iteye_8208
这个作者很懒,什么都没留下…
展开
-
applicationContext.xml
<?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:security="http://www.spr原创 2016-04-10 00:37:48 · 147 阅读 · 0 评论 -
Spring Jax-Ws. Build and consume Web Services – part 1
Spring Jax-Ws. Build and consume Web Services – part 1Posted on July 12, 2012 by MarcoFollowing the official guide, at the chapter 19 we’ll find the Spring support about web service (honestly,...原创 2016-12-20 22:42:28 · 137 阅读 · 0 评论 -
Spring Jax-Ws. Build and consume Web Services – part 2
Spring Jax-Ws. Build and consume Web Services – part 2Posted on July 12, 2012 by MarcoIn the previous article we’ve seen how build a Jax Web Services with spring. Now it’s time to see how cons...原创 2016-12-20 22:40:47 · 127 阅读 · 0 评论 -
Spring定时任务的几种实现
一.分类从实现的技术上来分类,目前主要有三种技术(或者说有三种产品):Java自带的java.util.Timer类,这个类允许你调度一个java.util.TimerTask任务。使用这种方式可以让你的程序按照某一个频度执行,但不能在指定时间运行。一般用的较少,这篇文章将不做详细介绍。使用Quartz,这是一个功能比较强大的的调度器,可以让你的程序在指定时间执行,也可...原创 2016-12-08 10:33:39 · 107 阅读 · 0 评论 -
Spring3.X jdk8 java.lang.IllegalArgumentException
异常提示: 1 javax.servlet.ServletException: Servlet.init() for servlet springMVC threw exception 2 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) 3 ...原创 2016-11-22 12:22:48 · 105 阅读 · 0 评论 -
Spring的refresh()方法相关异常
如果是经常使用Spring,特别有自己新建ApplicationContext对象的经历的人,肯定见过这么几条异常消息:1.LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: ......2.BeanFactory not initialize...原创 2016-11-22 10:28:28 · 179 阅读 · 0 评论 -
spring aop
<?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:security="http原创 2016-10-08 11:33:04 · 93 阅读 · 0 评论 -
spring hibernate dao support
package com.jaeson.springstudy.dao.impl;import java.util.List;import org.hibernate.Query;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.springframework.bea...原创 2016-05-12 12:06:32 · 174 阅读 · 0 评论 -
spring JdbcTemplate
package com.jaeson.springstudy.dao.impl;import java.io.*;import java.util.Collection;import java.util.Map;import java.util.HashMap;import java.util.List;import java.util.ArrayList;im...原创 2016-05-12 12:04:51 · 129 阅读 · 0 评论 -
spring callback
Spring中定义了三个可以用来对Spring bean或生成bean的BeanFactory进行处理的接口, InitializingBean、BeanPostProcessor和BeanFactoryPostProcessor。 InitializingBean中定义了一个afterPropertiesSet()方法。当BeanFactory将我们的bea...原创 2016-04-29 00:18:55 · 277 阅读 · 0 评论 -
转载:Spring 框架的设计理念与设计模式分析
Spring 框架的设计理念与设计模式分析<!-- LEADSPACE_BODY_END --> <!-- SUMMARY_BEGIN -->Spring 作为现在最优秀的框架之一,已被广泛的使用,并且有很多对其分析的文章。本文将从另外一个视角试图剖析出 Spring 框架的作者设计 Spring 框架的骨骼架构的设计理念,有那几个核心组件?为什么需要这...原创 2016-04-28 18:43:13 · 111 阅读 · 0 评论 -
基于注解的Spring AOP的配置和使用
AOP是OOP的延续,是Aspect Oriented Programming的缩写,意思是面向切面编程。可以通过预编译方式和运行期动态代理实现在不修改源代码的情况下给程序动态统一添加功能的一种技术。AOP实际是GoF设计模式的延续,设计模式孜孜不倦追求的是调用者和被调用者之间的解耦,AOP可以说也是这种目标的一种实现。我们现在做的一些非业务,如:日志、事务、安全等都会写在业务代码中(也即...原创 2016-04-26 13:48:48 · 81 阅读 · 0 评论 -
SpringContextUtil工具类
import org.springframework.beans.BeansException;import org.springframework.beans.factory.NoSuchBeanDefinitionException;import org.springframework.context.ApplicationContext;import org.springfr...原创 2016-04-11 00:20:49 · 238 阅读 · 0 评论 -
spring 激活profile的几种方式
激活 profile spring 为我们提供了大量的激活 profile 的方法,可以通过代码来激活,也可以通过系统环境变量、JVM参数、servlet上下文参数来定义 spring.profiles.active 参数激活 profile,这里我们通过定义 JVM 参数实现。1、ENV方式:ConfigurableEnvironment.setActiveProfiles("...原创 2017-03-27 15:17:28 · 987 阅读 · 0 评论