简体   繁体   English

无法判断字节码检测在Hibernate中是否正常工作

[英]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.

相关问题 Hibernate - 字节码检测和字节码增强之间的区别? - Hibernate - Difference between bytecode instrumentation and bytecode enhancement? 如何在 Intellij IDEA 运行之前启用 Hibernate 字节码检测? - How to enable Hibernate bytecode instrumentation just before Intellij IDEA run? ClassNotFoundException:org.hibernate.bytecode.instrumentation.internal.FieldInterceptionHelper - ClassNotFoundException: org.hibernate.bytecode.instrumentation.internal.FieldInterceptionHelper Hibernate Bytecode Instrumentation:立即将获取的属性值设置为其字段 - Hibernate Bytecode Instrumentation: Set fetched property values to their fields right away Java字节码检测的替代方案 - Alternatives to Java bytecode instrumentation 本机java字节码检测 - native java bytecode instrumentation 动态字节码检测 - 问题 - Dynamic bytecode instrumentation - issue 谁能告诉我这个字节码是做什么的? - Can anyone please tell what this bytecode does? 休眠字节代码检测不适用于5.1.0版本 - Hibernate Byte code instrumentation not working for 5.1.0 version java.lang.ClassNotFoundException:org.hibernate.bytecode.instrumentation.internal.FieldInterceptionHelper - java.lang.ClassNotFoundException: org.hibernate.bytecode.instrumentation.internal.FieldInterceptionHelper
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM