0
使用JHipster 4.2.0中的IntelliJ JPA的控制檯不工作:JHipster和IntelliJ JPA控制檯
javax.persistence.PersistenceException: [PersistenceUnit: Entities] Unable to build Hibernate SessionFactory
java.lang.RuntimeException: org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
雖然在應用dev.yml的factory_class設置。
hibernate.cache.region.factory_class: io.github.jhipster.config.jcache.NoDefaultJCacheRegionFactory
有什麼辦法解決這個問題?
這通常發生在您未將彈簧配置文件設置爲dev時檢查IJ設置 –
我已經在Run/Debug Configurations和Maven Profiles中設置了spring dev配置文件,但不知道如何爲jpa控制檯設置它。 – dbConn
JPA控制檯是Ultimate Edition的一項功能,您是否詢問過JetBrains支持?或者只是這個https://www.jetbrains.com/help/idea/2017.1/working-with-the-jpa-console.html#d469049e34 –