Spring MVC DispatcherServlet initialization parameter contextClass in documentation should implement ConfigurableWebApplicationContext not WebApplicationContext [SPR-17414] #21947
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: task
A general task
Milestone
Sun Tao opened SPR-17414 and commented
In section 22.2.3 table 22.2, the explanation for contextClass Paramter is "Class that implements WebApplicationContext ..."
Web MVC framework
But when I see the source code of FrameworkServlet, the method createWebApplicationContext will throw exception if ConfigurableWebApplicationContext is not a super class of contextClass. So is it better to say contextClass should implement ConfigurableWebApplicationContext?
Thank you.
Affects: 4.3.18
Referenced from: commits 448182f, 1c67ef4, c9f1016
Backported to: 5.0.11, 4.3.21
The text was updated successfully, but these errors were encountered: