0
我在生成的应用程序中遇到了一些问题。我还没有进入它,但我评论他@EnableScheduling,它运行。看起来像春天的问题。正在运行的问题
Caused by: java.lang.NoSuchMethodError: org.springframework.scheduling.annotation.SchedulingConfiguration.setBeanFactory(Lorg/springframework/beans/factory/BeanFactory;)V
at org.springframework.scheduling.annotation.SchedulingConfiguration$$EnhancerByCGLIB$$180fc4ed.setBeanFactory(<generated>)
at org.springframework.context.annotation.ConfigurationClassPostProcessor$EnhancedConfigurationBeanPostProcessor.postProcessPropertyValues(ConfigurationClassPostProcessor.java:442)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
... 65 more
接下来的应用程序配置文件中有错误的类:.conf。造成了一个问题。应该已经.config。
hibernate.cache.region.factory_class: com.mycompany.hipster.conf.hazelcast.HazelcastCacheRegionFactory
而不是
hibernate.cache.region.factory_class: com.mycompany.hipster.config.hazelcast.HazelcastCacheRegionFactory
最后DB信息未正确设置至少Postgres的。网址和用户名缺失。如果您可以更新安装文档来覆盖该文档,或者只是将其默认为localhost。也许在dev中运行时吐出配置信息。其他
一件事是从休眠警告:
[WARN] org.hibernate.ejb.HibernatePersistence - HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead.
非常酷的设置。谢谢!
我真的挖你放在一起的框架。我今天早上正在这样做一个原型,然后在自己身上跑过去。再次感谢你! – Marty