Skip to content

Configure view controllers with the ApplicationContext [SPR-13762] #18335

Closed
@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-13762 and commented

The ViewControllerRegistry should call setApplicationContext on the ParameterizableViewController (and the contained views like RedirectView) instances it creates. Not doing so can cause issues in Spring Boot where the ContextLoader is not used and we cannot fall back on ContextLoader.getCurrentWebApplicationContext().


Affects: 4.1.8, 4.2.2

Reference URL: spring-projects/spring-boot#3076

Backported to: 4.1.9

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions