上一页 1 ··· 134 135 136 137 138 139 140 141 142 ··· 229 下一页
摘要: 闲着没事,看看源码也是一种乐趣! java操作数据库的基本步骤都是类似的: 1. 建立数据库连接 2. 创建Connection 3. 创建statement或者preparedStateement 4. 执行sql,返回ResultSet 5. 关闭resultSet 5.关闭statement 阅读全文
posted @ 2015-06-07 15:46 一天不进步,就是退步 阅读(6293) 评论(0) 推荐(1) 编辑
摘要: 原文地址:http://songjianyong.iteye.com/blog/1571029/** * AESHelper.java * cn.com.songjy.test * * Function: TODO * * ver date author * ... 阅读全文
posted @ 2015-06-05 17:05 一天不进步,就是退步 阅读(3864) 评论(0) 推荐(0) 编辑
摘要: 1. 配置依赖文件 org.springframework.data spring-data-redis 1.5.0.RELEASE 2. 配置模板3. 使用示例: 3.1 K-V字符串类型的使用 get方法: redisTemplate.o... 阅读全文
posted @ 2015-06-05 16:09 一天不进步,就是退步 阅读(677) 评论(0) 推荐(0) 编辑
摘要: Jackson可以轻松的将Java对象转换成json对象和xml文档,同样也可以将json、xml转换成Java对象。Jackson 2.x版提供了三个JAR包供下载:1. Core库:streaming parser/generator,即流式的解析器和生成器。下载:http://repo1.ma... 阅读全文
posted @ 2015-06-04 17:23 一天不进步,就是退步 阅读(908) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://howtodoinjava.com/2015/02/20/spring-restful-client-resttemplate-example/After learning to buildSpring REST based RESTFul APIsforXML repres... 阅读全文
posted @ 2015-06-04 15:41 一天不进步,就是退步 阅读(715) 评论(0) 推荐(0) 编辑
摘要: httpSecurity 类似于spring security的xml配置文件命名空间配置中的元素。它允许对特定的http请求基于安全考虑进行配置。默认情况下,适用于所有的请求,但可以使用requestMatcher(RequestMatcher)或者其它相似的方法进行限制。使用示例:最基本的基于表... 阅读全文
posted @ 2015-06-03 15:51 一天不进步,就是退步 阅读(80019) 评论(1) 推荐(2) 编辑
摘要: 原文地址:http://www.roseindia.net/tutorial/spring/spring3/jdbc/sqlrowset.htmlThe 'SqlRowSet' is used to handle the result fetched (very similar to ResultS... 阅读全文
posted @ 2015-05-30 14:25 一天不进步,就是退步 阅读(5563) 评论(0) 推荐(0) 编辑
摘要: Spring 是一个非常流行和成功的 Java 应用开发框架。Spring Security 基于 Spring 框架,提供了一套 Web 应用安全性的完整解决方案。一般来说,Web 应用的安全性包括用户认证(Authentication)和用户授权(Authorization)两个部分。用户认证指... 阅读全文
posted @ 2015-05-28 14:05 一天不进步,就是退步 阅读(11683) 评论(0) 推荐(1) 编辑
摘要: 原文地址:http://blog.csdn.net/bluishglc/article/details/12709557Spring-Security的启动加载细节Spring-Security的启动和Spring框架的启动是一致的,都是从加载并解析xml配置文件开始的,spring通过注册自己的S... 阅读全文
posted @ 2015-05-25 08:38 一天不进步,就是退步 阅读(1640) 评论(0) 推荐(0) 编辑
摘要: 1. spring和spring security的集成,配置web.xml如下: contextConfigLocation /WEB-INF/spring-security.xml spri... 阅读全文
posted @ 2015-05-22 12:50 一天不进步,就是退步 阅读(19687) 评论(0) 推荐(2) 编辑
上一页 1 ··· 134 135 136 137 138 139 140 141 142 ··· 229 下一页