-
-
-
-
-
-
spring_aop3.rar
spring对AOP的支持
Aspect默认情况下不用实现接口,但对于目标对象(UserManagerImpl.java),在默认情况下必须实现接口
如果没有实现接口必须引入CGLIB库
我们可以通过Advice中添加一个JoinPoint参数,这个值会由spring自动传入,从JoinPoint中可以取得
参数值、方法名等等
-
spring_aop4.rar
... 下会采用JDK的动态代理实现AOP
2、如果目标对象实现了接口,可以强制使用CGLIB实现AOP
3、如果目标对象没有实现了接口,必须采用CGLIB库,spring会自动在JDK动态代理和CGLIB之间转换
如何强制使用CGLIB实现AOP?
* 添加CGLIB库,SPRING_HOME/cglib/*.jar
* 在spring配置文件中加入<aop:aspectj-autoproxy proxy-target-class="true"/>
JDK ...
-
-
-
spring_hibernate_1.rar
... 而采用openSession()
创建的session则不会
* 采用getCurrentSession()创建的session在commit或rollback时会自动关闭,而采用openSession()
创建的session必须手动关闭
2、使用getCurrentSession()需要在hibernate.cfg.xml ...
-
ourdev_392613.rar
单片机实现直流数控稳压电源,可调电压为0-9.9伏,步进为0.1伏,可以自动扫描键盘以增加或者减少电压-MCU NC Regulators DC power supply with adjustable voltage of 0-9.9 volts, stepping to 0.1 volts, can automatically scan the keyboard to increase or reduce the voltage
-