Skip to content

Retain profiles used when running AOT #30421

Closed
@mhalbritter

Description

@mhalbritter

The profiles specified when running AOT should be retained and used at runtime when starting the AOT processed application.

It's confusing that an application can be built with e.g. profile-a, uses the beans in that profile, but doesn't log that profile on startup. Users can specify spring.profiles.active=profile-a when running the AOT processed app, and then the log messages (and the configuration file loading for profile-a) happens, but I think this should be done automatically.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions