在heroku上启动jHipster应用程序时出错 [英] Error when starting jHipster application on heroku
问题描述
我使用jhipster 4.5.6。我试图在heroku上运行我的应用程序,并且在主类中执行此代码时出现此错误:
$ b
环境env = app.run(args) .getEnvironment();
$ b
2017-06-24 17:35:32.293错误4 --- [main] osboot.SpringApplication:应用程序启动失败
2017-06-24T17:35:32.294416 + 00:00 app [web.1]:
2017-06-24T17:35:32.294418 + 00:00 app [web.1]:org.springframework.beans。 FatalBeanException:无法将属性密码从源复制到目标;嵌套异常是java.lang.reflect.InvocationTargetException
您生成了启用了服务发现的monolith应用程序,这就是为什么您的应用程序希望配置JHipster注册表URL。您应该编辑 .yo-rc.json
文件并设置serviceDiscoveryType:false
并重新生成您的应用与 yo jhipster --with-entities
。
i'm using jhipster 4.5.6. I'm trying to run my application on heroku and i'm getting this error when executing this code on in main class:
Environment env = app.run(args).getEnvironment();
2017-06-24 17:35:32.293 ERROR 4 --- [ main] o.s.boot.SpringApplication : Application startup failed 2017-06-24T17:35:32.294416+00:00 app[web.1]: 2017-06-24T17:35:32.294418+00:00 app[web.1]: org.springframework.beans.FatalBeanException: Could not copy property 'password' from source to target; nested exception is java.lang.reflect.InvocationTargetException
You generated a monolith app with service discovery enabled, this is why your app expects JHipster registry URL to be configured. You should edit your .yo-rc.json
file and set "serviceDiscoveryType": false
and re-generate your app with yo jhipster --with-entities
.
这篇关于在heroku上启动jHipster应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!