Как заставить Red Hat JBOSS Server читать файл application.properties Spring Boot вместо standalone.xml - PullRequest
1 голос
/ 25 октября 2019

Я хочу, чтобы jboss читал свойства из внутреннего файла application.properties файла spring-boot.war. Когда я развертываю свое приложение как war, я получаю эти ошибки

    java.lang.RuntimeException: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.servlet.
DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration': 
Unsatisfied dependency expressed through constructor parameter 0; 
nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: 
Error creating bean with name 'spring.mvc-org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties': Could not bind properties to 'WebMvcProperties' : prefix=spring.mvc, ignoreInvalidFields=false, ignoreUnknownFields=true; 
nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.mvc.servlet' to org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties$Servlet

Что я могу сделать, чтобы настроить это?

Спасибо

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...