gpt4 book ai didi

IntelliJ 上的 Hibernate 激活

转载 作者:行者123 更新时间:2023-12-02 22:50:35 26 4
gpt4 key购买 nike

我是最近的 IntelliJ Idea 用户,我不知道如何启用 Hibernate。当我右键单击我的项目时,Hibernate 不会出现在“添加框架支持”菜单中(实际上我唯一可以选择的技术是 Groovy)。

我读过类似的消息here 。我检查了我的代理设置,看起来没问题。

我还阅读了 idea.log 文件,其中包含几个异常,但我无法得出任何结论。我错过了一些明显的东西吗?感谢您的帮助。

以下是 idea.log 文件中的一些异常(exception)情况:

2013-06-27 13:59:28,897 [ 148537]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms 
2013-06-27 14:33:18,012 [2177652] INFO - ellij.vfs.persistent.FSRecords - Creating VFS corruption marker; Trace=
java.lang.Exception
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$DbConnection.createBrokenMarkerFile(FSRecords.java:160)
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$DbConnection.access$2100(FSRecords.java:105)
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.invalidateCaches(FSRecords.java:1413)
at com.intellij.ide.actions.InvalidateCachesAction.actionPerformed(InvalidateCachesAction.java:47)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:162)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:259)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:892)


2013-06-27 17:00:00,750 [8794994] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2013-06-27 17:00:00,753 [8794997] ERROR - #com.intellij.util.Alarm - java.lang.InterruptedException
com.intellij.openapi.application.RuntimeInterruptedException: java.lang.InterruptedException
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:937)
at com.intellij.openapi.vcs.changes.VcsDirtyScopeManagerImpl.filePathsDirty(VcsDirtyScopeManagerImpl.java:161)
at com.intellij.openapi.vcs.changes.VcsDirtyScopeVfsListener$FileAndDirsCollector.markDirty(VcsDirtyScopeVfsListener.java:251)
at com.intellij.openapi.vcs.changes.VcsDirtyScopeVfsListener$FileAndDirsCollector.access$300(VcsDirtyScopeVfsListener.java:196)
at com.intellij.openapi.vcs.changes.VcsDirtyScopeVfsListener$1.run(VcsDirtyScopeVfsListener.java:92)
at com.intellij.openapi.vcs.ZipperUpdater$1.run(ZipperUpdater.java:64)


2013-06-27 17:00:01,086 [8795330] ERROR - #com.intellij.util.Alarm - IntelliJ IDEA 12.1.4 Build #IC-129.713
2013-06-27 17:00:01,086 [8795330] ERROR - #com.intellij.util.Alarm - JDK: 1.7.0_10
2013-06-27 17:00:01,086 [8795330] ERROR - #com.intellij.util.Alarm - VM: Java HotSpot(TM) Client VM
2013-06-27 17:00:01,087 [8795331] ERROR - #com.intellij.util.Alarm - Vendor: Oracle Corporation
2013-06-27 17:00:01,087 [8795331] ERROR - #com.intellij.util.Alarm - OS: Windows 7
2013-06-27 17:00:01,087 [8795331] ERROR - #com.intellij.util.Alarm - Original exception:
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:996)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lockInterruptibly(ReentrantReadWriteLock.java:776)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:934)
at com.intellij.openapi.vcs.changes.VcsDirtyScopeManagerImpl.filePathsDirty(VcsDirtyScopeManagerImpl.java:161)
at com.intellij.openapi.vcs.changes.VcsDirtyScopeVfsListener$FileAndDirsCollector.markDirty(VcsDirtyScopeVfsListener.java:251)
at com.intellij.openapi.vcs.changes.VcsDirtyScopeVfsListener$FileAndDirsCollector.access$300(VcsDirtyScopeVfsListener.java:196)
at com.intellij.openapi.vcs.changes.VcsDirtyScopeVfsListener$1.run(VcsDirtyScopeVfsListener.java:92)
at com.intellij.openapi.vcs.ZipperUpdater$1.run(ZipperUpdater.java:64)

最佳答案

从日志文件来看,您似乎拥有社区版的 IntelliJ。但是,为了支持 Hibernate 和类似框架,您需要 Ultimate 版本。

您可以比较两个版本的功能here .

关于IntelliJ 上的 Hibernate 激活,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17368046/

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