Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify profile support when using AOT #35262

Closed
mhalbritter opened this issue May 4, 2023 · 1 comment
Closed

Clarify profile support when using AOT #35262

mhalbritter opened this issue May 4, 2023 · 1 comment
Labels
type: documentation A documentation update
Milestone

Comments

@mhalbritter
Copy link
Contributor

mhalbritter commented May 4, 2023

We state here that "The Spring @Profile annotation and profile-specific configuration is not supported" when using AOT.

That's not quite right. Setting profiles which affect beans take no effect when running the AOT processed application. However, users can set a profile while building the application, which affects the AOT generated code. Profiles which only affect configuration properties (e.g. application-profile1.properties) are supported at runtime. @sdeleuze has demoed and documented something here.

There's also spring-projects/spring-framework#29844 which aims to improve the experience.

We should reword our documentation to correctly document the state of things and what's possible and what's not.

@mhalbritter mhalbritter added the type: documentation A documentation update label May 4, 2023
@mhalbritter mhalbritter added this to the 3.x milestone May 4, 2023
@wilkinsona
Copy link
Member

I think we could do this in 3.0.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

2 participants