[英]Can't tell if bytecode instrumentation is working in Hibernate
I am using the example below: https://vladmihalcea.com/hibernate-4-bytecode-enhancement/ 我正在使用以下示例: https : //vladmihalcea.com/hibernate-4-bytecode-enhancement/
for the bytecode ehancement. 用于字节码增强。 I am building the content fine but the compiled code is unchanged.
我正在构建内容,但编译后的代码未更改。 i used a decompiler to view the file and it is the same.
我用反编译器来查看文件,它是相同的。 How do i know if the bytecode is working?
我怎么知道字节码是否正常工作?
As explained in this article , the bytecode enhancement plugin didn't work properly prior to Hibernate 5. 如本文所述,字节码增强插件在Hibernate 5之前无法正常工作。
More, make sure that your IDE does not overwrite (by recompiling the source code) the classes which were previously enhanced by running the instrumentation task. 此外,请确保您的IDE不会覆盖(通过重新编译源代码)先前通过运行检测任务而增强的类。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.