首页

搜索结果

"tag:"spring""

<<上篇 1 2

标题及摘要 日期/时间
21
using my own FORM_LOGIN_FILTER
http auto-config="false" entry-point-ref="loginUrlAuthenticationEntryPoint" custom-filter position="FORM_LOGIN_FILTER" ref="myAuthenticationFilter" / /http beans:bean id="myAuthenticationFilter" clas...
2013-1-9
14:27:25
22
Creating a custom authentication with Acegi/Spring Security - Stack Overflow
Implement a customAuthenticationProviderwhich gets all your authentication information from theAuthentication:getCredentials(),getDetails(), andgetPrincipal(). Tie it into your Spring Security authentication mechanism using the following con...
2013-1-9
9:45:21
23
Spring Security and CAS Interaction Sequence
Spring Security and CAS Interaction Sequence The basic interaction between a web browser, CAS server and a Spring Security-secured service is as follows: The web user is browsing the service's public pages. CAS or Spring Security is not i...
2013-1-8
10:35:43
24
Spring Component-scan和eclipse export jar兼容问题
Spring使用component-scan的时候,如果把spring bean打包到jar文件中,spring无法找到相应的bean 要处理正确很简单:当使用eclipse export成.jar的时候,把add directory entries选上就可以了 或者使用下列打包方法: jarcvfjj.jarcomMETA-INFjdbc.properties beans.xml
2011-3-22
10:53:00
25
Transaction rolled back because it has been marked as rollback-only
发生这种异常的case: @Transactional publicvoidfoo(){ try{ bar(); }catch(RuntimeExceptionre){ //caughtbutnotthrowfurther } } @Transactional publicvoidbar(){ } 如果foo在调用bar的时候,bar抛出RuntimeException,Spring在bar return时将Transactional标记为Rollback only, 而foo捕获了bar的Ru...
2010-6-4
14:56:43
26
Spring, JdbcTemplate and Transactions
JdbcTemplate的事务问题 使用Spring的JdbcTemplate,必须传入DataSource对象构造JdbcTemplate,JdbcTemplate使用的Connection对象是一个新申请的,而且JdbcTemplate操作采用的是JDBC默认的AutoCommit模式,因此如果同时在一个DAO或者Service里混合用了HibernateTemplate和JdbcTemplate,甚至默认的配置情况下,使用同一个JdbcTemplate两次操作SQL也不是事务的。要让JdbcTemp...
2010-1-14
13:16:41
27
使用Spring的TaskExecutor的线程池执行异步操作
Using a TaskExecutor 使用Spring的TaskExecutor的线程池执行异步操作 Spring's TaskExecutor implementations are used as simple JavaBeans. In the example below, we define a bean that uses the ThreadPoolTaskExecutor to asynchronously print out a set of messages. ...
2009-8-2
10:43:49
28
在Spring中使用Quartz任务调度支持集群
虽然在Quartz上有配置Quartz集群Clustering ,但是在Spring中使用Quartz任务调度并支持集群系统却有些问题,下面介绍解决办法:
2008-10-7
16:23:11
29
Spring架构下发送带图片的html格式邮件
Spring架构下发送带图片的html格式邮件
2008-5-4
18:02:06
30
Spring+Hibernate大批量处理数据
关于使用Spring+Hibernate进行大批量数据的插入和更新,它的性能和使用JDBC PreparedStatement的batch批量操作以及数据库的存储过程操作几乎可以一样高。在Hibernate的官方文档里说到了Batch processing。Spring+Hibernate大批量处理数据想要说明如何使用Hibernate大批量处理数据获得高性能。
2008-4-5
10:19:03
31
配置Quartz集群Clustering
配置Quartz集群Clustering
2008-3-8
16:56:57
32
为集群配置Quartz的JDBCJobStore
Quartz集群当前只能与JDBC-Jobstore一起工作
2008-3-8
16:54:23
33
在Spring+hibernate里关闭远程Oracle dblink
在Spring+hibernate里关闭远程Oracle dblink
2007-8-23
12:00:21
34
Spring transaction事务的roll back回滚机制
之前的Domain Service Owner Transaction Design Pattern已经提到了Spring的事务机制和Spring事务设计, Spring的transaction事务管理应该是Spring应用广泛的最大原因,但是我们中国的Java开发者好像并不知道Spring的事务到底是怎么回事。所以,我转载一段Spring官方参考文档说明Spring的事务回滚机制。 Spring框架的事务基础架构代码将默认地 只 在抛出运行时和unchecked exceptions时才标识事务回滚。 ...
2007-6-20
20:07:51
35
配置Spring+hibernate使用ehcache作为second-level cache
大量数据流动是web应用性能问题常见的原因,而缓存被广泛的用于优化数据库应用。cache被设计为通过保存从数据库里load的数据来减少应用和数据库之间的数据流动。数据库访问只有当检索的数据不在cache里可用时才必要。hibernate可以用两种不同的对象缓存:first-level cache 和 second-level cache。first-level cache和Session对象关联,而second-level cache是和Session Factory对象关联。 缺省地,hiberna...
2007-6-20
10:06:11
36
用Spring和EHCache缓存中间Service的方法结果集
之前知道,在J2ee应用里可以用oscache缓存jsp页面,也可以用ehcache等作为hibernate等ORM缓存方案,为j2ee应用提高性能,减少数据库负荷压力。 而这篇文档Caching the result of methods using Spring and EHCache ,描述了用ehcache和spring ioc来缓存中间Service方法的结果集。这是很妙的想法。
2007-6-16
21:33:43
37
一个在Spring里使用quartz完成时序调度工作的例子
Spring提供了支持时序调度的整合类。现在, Spring支持内置于1.3版本以来的JDK中的Timer和Quartz Scheduler(http://www.quartzscheduler.org)。 两个时序调度器通过FactoryBean建立,保持着可选的对Timers或者Triggers的引用。更进一步的, 对于Quartz Scheduler和Timer两者存在一个方便的类允许你调用目标对象(类似于通常的MethodInvokingFactoryBeans)上的某个方法。
2007-4-29
11:13:49
38
使用 Spring 框架来改善 Oracle JDBC 访问
Spring 框架是一个在 Apache 许可下发布的 Java/J2EE 应用程序框架,它支持 J2EE 应用程序中的多个层次。Spring 框架的一个突出特性是支持更易于维护和更强健的 JDBC 数据访问。在本文中,您将了解到 Spring 框架 — 它可以和 Oracle TopLink 对象/关系映射工具结合使用 — 如何大大减少与编写 JDBC 代码相关的烦琐工作和风险。使用 Spring 框架,开发人员编写的 Oracle 数据库访问 JDBC 代码可以更为简洁、更不易...
2006-11-13
16:46:33
39
Wire Hibernate Transactions in Spring
  本文主要探讨如何利用Spring来装配组件,包括其事务上下文。从J2EE应用程序内部连接到单个的数据库并不是什么难事。但是,如果要装配或者集成企业级的组件,情况就复杂了。一个组件可以有一个或多个支持它的数据库,因此,当装配两个或更多的组件时,我们希望能够保持在跨组件的多个数据库中进行的操作的原子...
2006-10-9
20:21:26
40
Spring mvc is Working with Checkboxes
To be able to bind multiple values (from HTML table) onto a collection of objects
2006-9-26
16:07:49

<<上篇 1 2