gpt4 book ai didi

java - 为什么使用 IntelliJ 时我的 Google App Engine 类没有得到增强?

转载 作者:行者123 更新时间:2023-12-01 16:47:39 25 4
gpt4 key购买 nike

我的项目是用gradle构建的。如果我从命令行运行测试,一切正常:

./gradlew test --tests '*.UserTest'

但是当我尝试从 Intelli 内部运行测试时,它无法运行,因为我的类没有增强

javax.jdo.JDOUserException: Persistent class "Class com.example.Foo does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output." has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class.

运行任务 appengineEnhance 没有什么区别。

最佳答案

事实证明,默认情况下,IntelliJ 将使用平台运行器来运行测试。您需要选择 gradle runner。

首选项 > build[...] > 构建工具 > gradle > runner 并选择将 IDE 构建/运行操作委托(delegate)给 gradle

enter image description here

关于java - 为什么使用 IntelliJ 时我的 Google App Engine 类没有得到增强?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46955764/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com