且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在heroku上启动jHipster应用程序时出错

更新时间:2022-10-21 15:29:45

您生成了启用了服务发现的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.