Default order of <mvc:resources> should be prioritized [SPR-14871] #19437
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Tomoyuki Ikeya opened SPR-14871 and commented
Default
order
of<mvc:resources>
isOrder.LOWEST_PRECEDENCE - 1
. This means search of mappings for static resources is done after all other mappings are evaluated.Without changing default
order
, it takes overheads and causes performance problem especially when an app has a lot of accesses to static resources or request mappings.Of course, it may be solved to set
order
explicitly such as<mvc:resources ... order="-1" />
, but the current defaultorder
often leads performance problem.To avoid the mis-leading, I propose to change the default
order
to-1
, or improve reference document to mention toorder
option.Affects: 4.1.9, 4.2.8, 4.3.3
2 votes, 4 watchers
The text was updated successfully, but these errors were encountered: