
Spring
文章平均质量分 80
iteye_10362
这个作者很懒,什么都没留下…
展开
-
使用Spring配置文件配置Ldap认证源
http://hi.baidu.com/five00/blog/item/8bccc213cdbb83065aaf53b2.html1. 使用Spring配置文件配置Ldap认证源在Spring中配置Ldap的过程与配置JDBC的过程类似,Ldap比JDBC多出一个base属性,这个是配置Ldap基结点(注意:这个基结点不仅仅指最高父节点),之后Ldap会查找基节点下所有子节点...原创 2011-08-16 12:02:59 · 754 阅读 · 0 评论 -
使用Spring的LdapTemplate进行LDAP操作
使用Spring的LdapTemplate进行LDAP操作 本文来源于铁木箱子的博客http://www.mzone.cc 本文永久地址是:http://www.mzone.cc/article/621.html <!-- 日志内容 --> 最近利用空闲时间研究了一把LDAP,然后用spring进行了一些编程尝试,通过spring的LdapTemplate可...原创 2011-08-16 12:06:58 · 1865 阅读 · 0 评论 -
Spring-LDAP
用Spring LDAP最小需要:spring-ldap(spring-ldap包) spring-core(用于框架内部的丰富的工具类) spring-beans(方便操作java beans的接口和类) spring-context(增加通过一致API为应用对象获取资源的能力) spring-dao(使经常性的错误处理跟使用中的数据访问分开的异常处理机制) commo...原创 2011-08-16 13:21:21 · 109 阅读 · 0 评论 -
Spring ldap登陆
public class PersonDaoImpl implements PersonDao { private LdapTemplate ldapTemplate; public static void main(String[] args) { ApplicationContext cxt = new ClassPathXmlApplicationContext( ...原创 2011-08-18 10:56:20 · 275 阅读 · 0 评论 -
Spring JdbcTemplate 查询结果 实体生成工具
import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import java.lang.reflect.Field;import java.util.*;/** * Created by 黄永光 * User: Administrator * Dat...2011-08-19 16:15:42 · 311 阅读 · 0 评论 -
Transaction rolled back because it has been marked as rollback-only异常解决
原来是这样设置的: <tx:attributes> <tx:method name="*" read-only="true"/> </tx:attributes> 发现selectA调用selectB,如果selectB抛出Exception,selectA中捕获Excep...原创 2012-03-22 14:19:25 · 548 阅读 · 0 评论 -
Spring 源码分析 之实用工具ObjectUtils
/* * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....原创 2013-11-22 21:35:37 · 1121 阅读 · 0 评论 -
Spring 源码分析实用工具Assert
/* * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License....原创 2013-11-22 21:43:48 · 213 阅读 · 0 评论