在heroku上启动jHipster应用程序时出错 [英] Error when starting jHipster application on heroku

查看:180
本文介绍了在heroku上启动jHipster应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆