Throw hard failure with config first bootstrap mode during AOT processing

Abierto
#1,186 2 comentarios 5 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@OlgaMaciaszek ya está trabajando en esto.

Desde el 6/1/2023.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

enhancement

When an application uses config first bootstrap (by configuring spring.config.use-legacy-processing=true or using the spring-cloud-starter-bootstrap dependency), AOT processing is not supported.

While this limitation is documented, an application that transitively depends on the starter will see the following behavior:

  • AOT processing succeeds and generates source files
  • the application fails at startup both in native and JVM modes, as bean definitions for the application and auto-configurations were not parsed.

Adding an AOT processor in the starter (and declaring it in aot.factories) that throws a hard failure during AOT processing, describing the problem, could help diagnose such issues.

Lenguaje dominante
Java
Estrellas
751
Forks
748
Merge medio
19 h 58 min
PR fusionados (30 d)
23

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de spring-cloud/spring-cloud-commons

Todos los issues de spring-cloud/spring-cloud-commons

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.