Spring
414rwbg435bw5_3sdf
这个作者很懒,什么都没留下…
展开
-
@RequestMapping Annotation with Controller, Methods, Headers, Params, @RequestParam, @PathVariable
null转载 2017-06-28 21:31:45 · 374 阅读 · 0 评论 -
Spring @RequestMapping
null转载 2017-06-28 21:13:15 · 426 阅读 · 0 评论 -
spring错误 Could not resolve Spring property placeholder
null转载 2017-06-28 20:56:18 · 854 阅读 · 0 评论 -
Spring AOP注解通过@Autowired,@Resource(J2EE提供),@Qualifier,@PostConstruct,@PreDestroy注入属性的配置文件详解
wu转载 2016-08-25 23:23:58 · 311 阅读 · 0 评论 -
spring AOP @Around @Before @After 区别
(http://outofmemory.cn/code-snippet/3025/spring-AOP-Around-Before-After-differentiate)此段小代码演示了spring aop中@Around @Before @After三个注解的区别@Before是在所拦截方法执行之前执行一段逻辑。@After 是在所拦截方法执行之后执行一段逻辑。@Aroun转载 2016-08-24 10:50:23 · 326 阅读 · 0 评论 -
Spring缓存注解@Cache,@CachePut , @CacheEvict,@CacheConfig使用
http://blog.csdn.net/sanjay_f/article/details/47372967@Cacheable、@CachePut、@CacheEvict 注释介绍表 1. @Cacheable 作用和配置方法@Cacheable 的作用 主要针对方法配置,能够根据方法的请求参数对其结果进行缓存@Cacheable转载 2017-01-17 03:28:18 · 318 阅读 · 0 评论 -
Spring缓存注解@Cacheable、@CacheEvict、@CachePut使用
(http://blog.csdn.net/wjacketcn/article/details/50945887)从3.1开始,spring引入了对Cache的支持。其使用方法和原理都类似于Spring对事务管理的支持。Spring Cache是作用在方法上的,其核心思想是这样的:当我们在调用一个缓存方法时会把该方法参数和返回结果作为一个键值对存放在缓存中,等到下次利用同样的参转载 2017-01-17 02:31:21 · 265 阅读 · 0 评论 -
Spring AOP (下)
(http://www.cnblogs.com/yanbincn/archive/2012/08/13/2636961.html)昨天记录了Spring AOP学习的一部分(http://www.cnblogs.com/yanbincn/archive/2012/08/13/2635413.html),本来是想一口气梳理完的。但是大晚上时间不够(无奈一场奥运篮球总决赛耗费掉了2转载 2017-01-16 23:16:39 · 155 阅读 · 0 评论 -
Spring AOP (上)
(http://www.cnblogs.com/yanbincn/archive/2012/08/13/2635413.html)工作忙,时间紧,不过事情再多,学习是必须的。记得以前的部门老大说过:“开发人员不可能一天到晚只有工作,肯定是需要自我学习。第一:为了更充实自己,保持进步状态。第二:为了提升技术,提高开发能力。第三:保持程序员对技术和学习的热情,工作的激情。程序员还是转载 2016-08-24 11:16:19 · 180 阅读 · 0 评论 -
Spring如何加载XSD文件以及抱错
(http://blog.csdn.net/bluishglc/article/details/7596118)(http://blog.csdn.net/wutbiao/article/details/8315431)本文原文连接: http://blog.csdn.net/bluishglc/article/details/7596118 ,转载请注明出处!转载 2016-09-28 11:13:43 · 396 阅读 · 0 评论 -
Spring单实例、多线程安全、事务解析
(http://blog.csdn.net/liou825/article/details/17363265)(http://blog.csdn.net/c289054531/article/details/9196053)引言: 在使用Spring时,很多人可能对Spring中为什么DAO和Service对象采用单实例方式很迷惑,这些读者是这么认为的:转载 2016-08-26 15:55:46 · 335 阅读 · 0 评论 -
JAX-WS + Spring integration example
(http://www.mkyong.com/webservices/jax-ws/jax-ws-spring-integration-example/)Here’s a guide to show you how to integrate Spring with JAX-WS, as mention in this link : http://jax-ws-commons.j转载 2016-08-26 15:10:29 · 572 阅读 · 0 评论 -
Spring之JMS之接受消息
(http://blog.csdn.net/luccs624061082/article/details/41445423)23.4.1 同步接受JMS一般是异步处理,也有可能同步消费消息。重载receive(..)方法提供了这个功能。在同步接受期间,调用线程会一直阻塞直到消息可用。这会是很危险的操作,因为调用线程可能随机发生阻塞。receiveTimeout属性指定了转载 2016-08-24 10:38:20 · 314 阅读 · 0 评论 -
PreAuthenticatedGrantedAuthoritiesUserDetailsService/DelegatingFilterProxy
空白转载 2016-08-24 10:31:09 · 307 阅读 · 0 评论 -
Spring整合JMS(二)——三种消息监听器
(http://haohaoxuexi.iteye.com/blog/1893676)1.3 消息监听器MessageListener 在Spring整合JMS的应用中我们在定义消息监听器的时候一共可以定义三种类型的消息监听器,分别是MessageListener、SessionAwareMessageListener和MessageListenerAd转载 2016-08-24 10:14:06 · 107 阅读 · 0 评论 -
DefaultMessageListenerContainer
http://blog.csdn.net/zhaozhenzuo/article/details/7934881http://ju.outofmemory.cn/entry/87375http://blog.csdn.net/moonsheep_liu/article/details/6684948转载 2016-08-23 23:44:52 · 174 阅读 · 0 评论 -
ClassPathXmlApplicationContext start 方法
https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/context/support/AbstractApplicationContext.html#start-- 官方文档http://stackoverflow.com/questions/24145070/use-of-start-m转载 2016-08-23 23:39:27 · 1583 阅读 · 0 评论 -
请慎用spring-ClassPathXmlApplicationContext手动加载spring配置文件
(http://blog.csdn.net/maidou_2011/article/details/8447384)在用spring做数据源配置的时候,如果代码中有用ClassPathXmlApplicationContext去加载spring配置文件,那么每次运行到此处代码,spring都会重新获得一个数据库连接。如果浏览量太大就会导致超出数据库连接会话上写的错误,比转载 2016-08-23 23:33:21 · 449 阅读 · 0 评论 -
用Jersey开发RESTful服务
(http://www.jdon.com/soa/jersey.html)(http://lib.csdn.net/article/java/3836)REST基础概念:在REST中的一切都被认为是一种资源。每个资源由URI标识。使用统一的接口。处理资源使用POST,GET,PUT,DELETE操作类似创建,读取,更新和删除(CRUD)操作。无状态。每个转载 2016-08-23 15:59:58 · 264 阅读 · 0 评论 -
Spring三种bean注入方式
Spring中依赖注入有三种注入方式:一、构造器注入;二、设值注入(setter方式注入);三、Feild方式注入(注解方式注入)。 一、构造器注入 构造器注入顾名思义就是在程序组件中实现构造器,构造器可以是一个也可以是多个。废话不多说,直接上代码。 Java代码 package cn.glzaction转载 2016-08-18 14:48:27 · 351 阅读 · 0 评论 -
Spring 注入静态变量 解决方案
(http://irfen.iteye.com/blog/1335016)先说下我现在使用的版本:Spring3.0 annotation写的今天写项目遇到了一个问题:想通过jstl自定义函数来实现页面上面的一部分内容。通过Spring注入后发现报如下错误:@Resource annotation is not supported on static field转载 2016-08-18 14:49:37 · 259 阅读 · 0 评论 -
JMS + Spring
http://haohaoxuexi.iteye.com/blog/1893676http://blog.csdn.net/xo_zhang/article/details/8945234http://zzqrj.iteye.com/blog/836229转载 2016-08-24 10:53:01 · 121 阅读 · 0 评论 -
spring中的属性scope
(http://dove19900520.iteye.com/blog/1759624)之前在开发过程中遇到了一个问题,当request发起下一个请求的时候,action中的属性值并没有清除,而是继续采用上次使用过的参数值进行查询并响应,导致数据查询不真实或失败。对此,有同事告诉我说,需要在spring配置文件的bean中添加属性scope=prototype。结果还真的有用。转载 2016-08-24 11:02:48 · 221 阅读 · 0 评论 -
Spring对JNDI的支持的配置实例(JNDI简介)
JNDI(Java Naming and Directory Interface,Java命名和目录接口)是SUN公司提供的一种标准的Java命名系统接口,JNDI提供统一的客户端API,通过不同的访问提供者接口JNDI服务供应接口(SPI)的实现,由管理者将JNDI API映射为特定的命名服务和目录系统,使得Java应用程序可以和这些命名服务和目录服务之间进行交互。目录服务是命名服务的一种自转载 2016-08-24 11:42:15 · 1235 阅读 · 0 评论 -
Spring AOP动态代理原理与实现方式
(http://blog.csdn.net/lirui0822/article/details/8555691)AOP:面向切面、面向方面、面向接口是一种横切技术横切技术运用:1.事务管理: (1)数据库事务:(2)编程事务(3)声明事物:Spring AOP-->声明事物 2.日志处理:3.安全验证: Spring AOP---OOP升级转载 2016-08-26 00:34:14 · 141 阅读 · 0 评论 -
Spring4.2新特性(一)
(http://ifeve.com/spring4-2/)1. 简介.前些天spring4.2出来了, 从GA开始就一直在跟了, 前2天看完了所有官方Release Notes, 觉得记录下我比较感兴趣的特性.我看的是4.2GA, 4.2RC3, 4.2RC2, 4.2RC1。4.0和4.1的新特性, 可以看看涛哥的博客。这里主要是讲照官方文档里面列的, chang转载 2016-08-26 00:05:44 · 276 阅读 · 0 评论 -
springMVC中restful利用@RequestBody注解进行json 与object的转换
(http://blog.csdn.net/ai6740165/article/details/18813643)由于快过年的原因,项目组没有太多任务,闲来无事研究了一下spring中restful调用。发现spring竟然已经强大到如此境界,程序员已经不需要在关心在写接口的过程中数据的转换以及调用,只需要专注业务。下面我总结一下步骤及其在研究过程的遇到的问题。步骤:转载 2016-08-26 00:03:19 · 579 阅读 · 0 评论 -
Spring Autowire自动装配 (XML中的bean的Autowire)
(http://www.cnblogs.com/cyjch/archive/2012/02/06/2340411.html) 1.在应用中,我们常常使用标签为JavaBean注入它依赖的对象,同时也Spring为我们提供了一个自动装配的机制,在定义Bean时,标签有一个autowire属性,我们可以通过指定它来让容器为受管JavaBean自动注入依赖对象。的autowire属性转载 2016-08-25 23:39:23 · 506 阅读 · 0 评论 -
Spring 整合 Tibco EMS
(http://blog.csdn.net/shimly2010/article/details/9748223)参考文档: http://haohaoxuexi.iteye.com/blog/1893038http://www.blogjava.net/chenhui7502/archive/2011/08/28/357457.html网上大都是关于spr转载 2016-08-25 23:34:40 · 274 阅读 · 0 评论 -
Spring横切面(advice),增强(advisor),切入点(PointCut)
(http://blog.csdn.net/masuwen/article/details/5445349)spring横切面(advice),增强(advisor),切入点(PointCut)的一点理解:1.Spring管理事务有2种,其中一种是HibernateTransactionManager管理txManager" class="or转载 2016-08-25 23:15:43 · 164 阅读 · 0 评论 -
Spring MVC annotation (二)
@ExceptionHandlerSpring注解,改变了我的开发思路。前段时间,用@RequestBody,@ResponseBody,不费吹灰之力就解决了JSon自动绑定。接着就发现,如果遇到RuntimeException,需要给出一个默认返回JSON。 以前都是用SimpleMappingExceptionResolver拦截实现,今天偶尔看下资料,@ExceptionHand转载 2016-08-25 23:01:10 · 141 阅读 · 0 评论 -
Spring MVC annotation (一)
@RequestBody作用: i) 该注解用于读取Request请求的body部分数据,使用系统默认配置的HttpMessageConverter进行解析,然后把相应的数据绑定到要返回的对象上; ii) 再把HttpMessageConverter返回的对象数据绑定到 controller中方法的参数上。使用时机:A) GET转载 2016-08-25 22:51:13 · 237 阅读 · 0 评论 -
Spring与RMI集成实现远程访问
(http://blog.csdn.net/shirdrn/article/details/6359254)使用spring对RMI的支持,可以非常容易地构建你的分布式应用。在服务端,可以通过Spring的org.springframework.remoting.rmi.RmiServiceExporter可以暴露你的服务;在客户端,通过org.springframework.转载 2016-08-25 00:09:51 · 158 阅读 · 0 评论 -
通过Spring Bean 注入static变量,来设计一套适合测试,开发,生产环境的配置项
(http://blog.csdn.net/initphp/article/details/8834844)这边文章的目的主要是为了在spring开发web项目的时候,让我们的测试,开发,生产环境的配置项.properties作为配置文件。我们首先需要建立一个config文件夹,然后创建开发,测试,生产环境的.properties配置项文件。转载 2016-08-18 14:50:24 · 1428 阅读 · 0 评论