Spring asm包的使用

今天进行hibernate与Spring的整合,配asm的几个包给整晕了,我用了以前的asm包,asm.jar和asm-attrs.jar.结果就是通不过。原因是不知道asm到底干嘛用的。

这是官网的asm的简介:

ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes or dynamically generate classes, directly in binary form. Provided common transformations and analysis algorithms allow to easily assemble custom complex transformations and code analysis tools.

ASM offer similar functionality as other bytecode frameworks, but it is focused on simplicity of use and performance. Because it was designed and implemented to be as small and as fast as possible, it makes it very attractive for using in dynamic systems*.

应该是用来动态的生成class的,直接以二进制方式生成。

官网地址:http://asm.ow2.org

用到的jar包:

asm-3.3.1.jar

asm-commons-3.3.1.jar

asm-util-3.3.1.jar

这么多人用SSH框架,为什么没有人详细的解释一下各个jar包的作用呢?

猜你喜欢

转载自luanyongsdau.iteye.com/blog/1021088
今日推荐