У меня есть приложение jhipster (монолит) и я сделал обновление с 5.4.2 до 5.8.2.
Я решил все конфликты и проблемы с компиляциями.
Я могу запуститьприложение с активным профилем "dev".Все тесты пройдены, и приложение работает должным образом.
Однако, как только я создаю приложение для «prod» и запускаю его с профилем «prod», я получаю исключение, которое не может найтипричина:
2019-03-01 17:11:04.437 WARN 24308 --- [ main]
ConfigServletWebServerApplicationContext :
Exception encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'org.springframework.scheduling.annotation.ProxyAsyncConfiguration':
Unsatisfied dependency expressed through method 'setConfigurers' parameter 0; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'asyncConfiguration' defined in URL
[jar:file:/***/config/AsyncConfiguration.class]:
Unsatisfied dependency expressed through constructor parameter 0;
nested exception is
org.springframework.boot.context.properties.ConfigurationPropertiesBindException:
Error creating bean with name 'io.github.jhipster.config.JHipsterProperties':
Could not bind properties to 'JHipsterProperties' :
prefix=jhipster,
ignoreInvalidFields=false,
ignoreUnknownFields=false;
nested exception is org.springframework.boot.context.properties.bind.BindException:
Failed to bind properties under 'jhipster' to
io.github.jhipster.config.JHipsterProperties
Я пытался проверить похожие проблемы, но не смог найти ссылку на настройку приложения и способы ее устранения:
https://github.com/jhipster/jhipster-registry/issues/279
https://github.com/jhipster/generator-jhipster/issues/8195
Я надеюсь, что кто-то может дать мне несколько советов о том, как решить проблему.
Большое спасибо за любую помощь, с уважением.