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 –