共 56 篇文章 |
|
// 1.初始化beanfactoryBeanFactory beanFactory = new BeanFactory();// 2.注入beanBeanDefinition beanDefinition = new BeanDefinition(new HelloWorldService());beanFactory.registerBeanDefinition("helloWorldService", beanDefinition);// 3.获取beanHelloWorldService helloWorldService = (HelloWorldService) beanFactory... 阅663 转2 评0 公众公开 15-12-29 15:31 |
让我们看看具体的BLOB操作在LobCreator是怎样完成的,我们一般使用DefaultLobCreator作为BLOB操作的驱动:Java代码 public void setBlobAsBinaryStream( PreparedStatement ps, int paramIndex, InputStream binaryStream, int contentLength) throws SQLException { //通过JDBC来完成对BLOB数据的操作,对Oracle,Spri... 阅42 转0 评0 公众公开 15-12-29 15:14 |
Spring源码解析。下面看一下如何使用jar包以及源码的source包 下面给出一个简单的spring样例 如何阅读源码。1 Spring jar包以及源码使用。选中必要的jar包,上面给出的源码jar包中,导入spring3.0.5中的所有jar包。导入jar包后,点开jar包,选中source attachment进行编辑,链接到源码的jar包。bean.xml用于配置bean的资源文件。首先,有... 阅36 转0 评0 公众公开 15-12-29 15:12 |
<aop:config> <aop:pointcut id="canyin" expression="execution(* com.laphone.base.baseservice.*.*(..)) ||execution(* com.laphone.canyin.*.service.*.*(..)) || execution(* com.laphone.canyin.*.*.service.*.*(..))"/> <aop:advisor advice-ref="txAdvice" pointcut-ref="canyin&... 阅2 转自posondlq 公众公开 15-10-22 17:36 |
spring有关的一些知识点0,简单讲下Sprng的由来,以及各有什么变化最早对象的创建是由new关键字,但是如果产生的类比较繁多或者负责,就用工厂代替new关键字,但是工厂的控制能力有限,譬如对产生对象的生命周期,作用域都不能控制,后来就出现了Spring,Spring简单说就是一个容器,实现了两大思想:IOC和AOP1.什么是Spring?byType:通过参数的数据类型自... 阅1 转自雪狼280 公众公开 15-03-13 09:48 |
spring security 3.1配置过程从简单到复杂详细配置。http://localhost:8080/spring-security/spring_security_login,这是自动生成的网页代码。[html] view plaincopy<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@ taglib prefix="sec" uri... 阅2 转自我的资料... 公众公开 15-03-13 09:01 |