Код: Выделить всё
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in com.example.clientapi.api.RmaCasesApiController required a bean of type 'org.springframework.web.context.request.NativeWebRequest' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.web.context.request.NativeWebRequest' in your configuration.
Код: Выделить всё
org.springframework.boot
spring-boot-maven-plugin
org.openapitools.OpenApiGeneratorApplication
org.openapitools
openapi-generator-maven-plugin
7.8.0
generate
${project.basedir}/src/main/resources/api/client-case-api.yml
spring
spring-boot
true
com.example.clientapi
com.example.clientapi.api
com.example.clientapi.model
Я пробовал установить mainClass свойству класса приложения Spring Boot, сгенерированного OpenAPI (мне пришлось установить это свойство, чтобы Maven успешно завершил сборку «установки»), но все равно получаю эту ошибку при запуске из командной строки или в среде IDE.
Мне не удалось найти сгенерированные классы, реализующие интерфейс NativeWebRequest, поэтому ошибка времени выполнения имела смысл. Будем очень признательны за любую помощь.
Надеюсь, что кто-то еще видел эту проблему.
Подробнее здесь: https://stackoverflow.com/questions/790 ... pringframe
Мобильная версия