【发布时间】:2022-01-27 17:24:04
【问题描述】:
我在代理下工作,当我尝试使用 POST 方法测试我的 API“/auth/login”时,我收到此错误:
2021-12-29 12:15:03.820 INFO 14556 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-12-29 12:15:03.820 INFO 14556 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2021-12-29 12:15:03.821 INFO 14556 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
Hibernate: select personne0_.id as col_0_0_ from personne personne0_ where personne0_.identifiant=? limit ?
Hibernate: select personne0_.id as col_0_0_ from personne personne0_ where personne0_.identifiant=? limit ?
Hibernate: select personne0_.id as id1_4_, personne0_.centreid as centrei13_4_, personne0_.cin as cin2_4_, personne0_.email as email3_4_, personne0_.est_responsable as est_resp4_4_, personne0_.grade as grade5_4_, personne0_.identifiant as identifi6_4_, personne0_.matricule as matricul7_4_, personne0_.mot_de_passe as mot_de_p8_4_, personne0_.nom as nom9_4_, personne0_.prenom as prenom10_4_, personne0_.tel as tel11_4_, personne0_.ville as ville12_4_ from personne personne0_ where personne0_.identifiant=?
2021-12-29 12:15:04.349 INFO 14556 --- [nio-8080-exec-1] o.h.e.internal.DefaultLoadEventListener : HHH000327: Error performing load command
org.hibernate.HibernateException: Generation of HibernateProxy instances at runtime is not allowed when the configured BytecodeProvider is 'none'; your model requires a more advanced BytecodeProvider to be enabled.
【问题讨论】:
-
请将您的错误发布为文本,而不是屏幕截图。后者不可搜索。
-
已添加。谢谢!
-
你的 pom.xml 看起来怎么样?您是如何创建项目的?
-
该项目是在我的本地机器上创建的,它工作正常,但是当我在公司代理下的另一台机器上运行它时,我收到了这个错误。
-
@AbdellahAITMOMIN 请分享个人实体
标签: spring-boot hibernate jpa spring-data-jpa