Я переезжаю из Maven в Gradle, и служба Spring Boot не может появиться при запуске через файл Gradle, сгенерированный JAR. Приложение работает нормально как приложение для пружины или при запуске как банка, сгенерированная через Maven. Оцените, если кто -то может указать на то, что мне не хватает. < /P>
Ошибка: < /p>
{"timestamp":"2021-09-15 03:37:23 UTC","message":"Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatServletWebServerFactory'
defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'servletWebServerFactoryCustomizer' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryAutoConfiguration.class]: Unsatisfied dependency expressed through method 'servletWebServerFactoryCustomizer' parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'server-org.springframework.boot.autoconfigure.web.ServerProperties': Could not bind properties to 'ServerProperties' : prefix=server, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'server.error.include-stacktrace' to org.springframework.boot.autoconfigure.web.ErrorProperties$IncludeAttribute","thread":"main","logLevel":"WARN","fileName":"AbstractApplicationContext.java","line":591,"serviceCode":"SMPL-JAVA-MS"}
{"timestamp":"2021-09-15 03:37:23 UTC","message":"\n\nError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.","thread":"main","logLevel":"INFO","fileName":"ConditionEvaluationReportLoggingListener.java","line":136,"serviceCode":"SMPL-JAVA-MS"}
< /code>
зависимости градл < /p>
implementation 'org.modelmapper:modelmapper:2.4.2'
implementation 'org.springframework.boot:spring-boot-starter-web:+'
implementation 'org.springframework.boot:spring-boot-starter-validation:+'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:+'
implementation 'io.springfox:springfox-swagger2:3.0.0'
implementation 'io.springfox:springfox-swagger-ui:3.0.0'
implementation 'io.springfox:springfox-boot-starter:3.0.0'
implementation 'org.springframework.boot:spring-boot-starter-webflux:+'
implementation 'org.opensaml:opensaml:2.5.1-1'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:+'
implementation 'org.springframework.boot:spring-boot-starter-test:+'
implementation 'com.google.guava:guava:30.1.1-jre'
runtimeOnly 'org.projectlombok:lombok:1.18.20'
runtimeOnly 'org.postgresql:postgresql:+'
runtimeOnly 'org.springframework.boot:spring-boot-devtools:+'
testImplementation 'org.springframework.boot:spring-boot-starter-test:+'
< /code>
покс.xml
org.springframework.boot
spring-boot-starter-parent
2.4.3
***
***
1.0.0
***
***
16
org.projectlombok
lombok
1.18.20
provided
org.modelmapper
modelmapper
2.4.2
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-starter-validation
com.fasterxml.jackson.dataformat
jackson-dataformat-xml
io.springfox
springfox-swagger2
3.0.0
io.springfox
springfox-swagger-ui
3.0.0
io.springfox
springfox-boot-starter
3.0.0
org.springframework.boot
spring-boot-starter-webflux
org.opensaml
opensaml
2.5.1-1
org.springframework.boot
spring-boot-starter-data-jpa
org.postgresql
postgresql
runtime
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-starter-test
com.google.guava
guava
30.1.1-jre
org.springframework.boot
spring-boot-devtools
runtime
true
org.springframework.boot
spring-boot-maven-plugin
Подробнее здесь: https://stackoverflow.com/questions/692 ... properties
Gradle + ошибка загрузки пружины: не удалось связать свойства ⇐ JAVA
Программисты JAVA общаются здесь
-
Anonymous
1758546546
Anonymous
Я переезжаю из Maven в Gradle, и служба Spring Boot не может появиться при запуске через файл Gradle, сгенерированный JAR. Приложение работает нормально как приложение для пружины или при запуске как банка, сгенерированная через Maven. Оцените, если кто -то может указать на то, что мне не хватает. < /P>
Ошибка: < /p>
{"timestamp":"2021-09-15 03:37:23 UTC","message":"Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatServletWebServerFactory'
defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'servletWebServerFactoryCustomizer' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryAutoConfiguration.class]: Unsatisfied dependency expressed through method 'servletWebServerFactoryCustomizer' parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'server-org.springframework.boot.autoconfigure.web.ServerProperties': Could not bind properties to 'ServerProperties' : prefix=server, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'server.error.include-stacktrace' to org.springframework.boot.autoconfigure.web.ErrorProperties$IncludeAttribute","thread":"main","logLevel":"WARN","fileName":"AbstractApplicationContext.java","line":591,"serviceCode":"SMPL-JAVA-MS"}
{"timestamp":"2021-09-15 03:37:23 UTC","message":"\n\nError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.","thread":"main","logLevel":"INFO","fileName":"ConditionEvaluationReportLoggingListener.java","line":136,"serviceCode":"SMPL-JAVA-MS"}
< /code>
зависимости градл < /p>
implementation 'org.modelmapper:modelmapper:2.4.2'
implementation 'org.springframework.boot:spring-boot-starter-web:+'
implementation 'org.springframework.boot:spring-boot-starter-validation:+'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:+'
implementation 'io.springfox:springfox-swagger2:3.0.0'
implementation 'io.springfox:springfox-swagger-ui:3.0.0'
implementation 'io.springfox:springfox-boot-starter:3.0.0'
implementation 'org.springframework.boot:spring-boot-starter-webflux:+'
implementation 'org.opensaml:opensaml:2.5.1-1'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:+'
implementation 'org.springframework.boot:spring-boot-starter-test:+'
implementation 'com.google.guava:guava:30.1.1-jre'
runtimeOnly 'org.projectlombok:lombok:1.18.20'
runtimeOnly 'org.postgresql:postgresql:+'
runtimeOnly 'org.springframework.boot:spring-boot-devtools:+'
testImplementation 'org.springframework.boot:spring-boot-starter-test:+'
< /code>
покс.xml
org.springframework.boot
spring-boot-starter-parent
2.4.3
***
***
1.0.0
***
***
16
org.projectlombok
lombok
1.18.20
provided
org.modelmapper
modelmapper
2.4.2
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-starter-validation
com.fasterxml.jackson.dataformat
jackson-dataformat-xml
io.springfox
springfox-swagger2
3.0.0
io.springfox
springfox-swagger-ui
3.0.0
io.springfox
springfox-boot-starter
3.0.0
org.springframework.boot
spring-boot-starter-webflux
org.opensaml
opensaml
2.5.1-1
org.springframework.boot
spring-boot-starter-data-jpa
org.postgresql
postgresql
runtime
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-starter-test
com.google.guava
guava
30.1.1-jre
org.springframework.boot
spring-boot-devtools
runtime
true
org.springframework.boot
spring-boot-maven-plugin
Подробнее здесь: [url]https://stackoverflow.com/questions/69202819/gradle-spring-boot-error-failed-to-bind-properties[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия