Похожие чаты

I'M trying to use Swagger configuration for Java project. I've reproduced

the problem:

***************************

APPLICATION FAILED TO START

***************************

Description:

Parameter 0 of constructor in com.config.SwaggerConfig required a bean of type 'org.springframework.boot.info.BuildProperties' that could not be found.

Action:

Consider defining a bean of type 'org.springframework.boot.info.BuildProperties' in your configuration.


I've already tried to fix it using solutions from here, but nothing helps me.

Also tried to change annotation @AllArgsConstructor instead of @RequiredArgsConstructor, but still the same issue appears.

Does anyone know how to fix this error? I can provide more information if needed. I appreciate any help.

1 ответов

9 просмотров
ᅠ ᅠ ᅠ Maksym-R. Автор вопроса

The answer is here. The cause is: "Both the Maven plugin and the Gradle plugin allow generating build information containing the coordinates, name, and version of the project. The plugins can also be configured to add additional properties through configuration. When such a file is present, Spring Boot auto-configures a BuildProperties bean."

Похожие вопросы

Обсуждают сегодня

Какие дистрибутивы Linux чаще всего работают в качестве серверов и почему?
Alex
27
Ребят, привет! Я портируюсь с войда на генту Читаю гентувики В разделе про разбивку диска указана xfs файловая система, а не ext4, как обычно Xfs имеет какие-то преимущества ...
Андрей Дыбов
21
А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
на тестовой партиции: Block count: 1269205 Reserved block count: 0 Free blocks: 476450 First block: 0 Block size: 4096...
Ivan Grushin
11
Если у меня есть такой класс: Object = {} function Object:new(a_name, a_transform, a_color, a_mesh, a_material, a_shader, a_textures) local private = {} private.n...
Cuarno Vile
4
I'm new at Monero and I'd like to ask you all - why are you in Monero? I know about privacy but what do you expect to happen in the next years, decades that Monero will make i...
Konrad
19
Is Kadena onto something special? No one really knows. Good luck!
Bright Uncle Stephen EqualBet
40
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
Гайз, кто-нибудь пробовал запустить probe-rs под камень, которого нет в probe-rs? Мб есть какой-нибудь пример у кого... Через target-gen попробовал сгенерировать chip-descript...
Максим Смирнов
2
У меня одного в Сафари видео с ютюба не воспроизводится?
✨ Anatolii Cherednichenko
9
Карта сайта