Throw hard failure with config first bootstrap mode during AOT processing

Aperta
#1,186 2 commenti 5 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@OlgaMaciaszek ci sta già lavorando.

Dal 6/1/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Java
Stelle
751
Fork
748
Merge medio
19h 58m
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di spring-cloud/spring-cloud-commons

Tutte le issue di spring-cloud/spring-cloud-commons

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.