Spring / Spring MVC Interview questions
How do I configure Spring MVC to eliminate Path-Based Vulnerability?
Spring supports suffix ".*" so. /employee is also mapped to /employee.* /employee.xml or /employee.pdf is also mapped. To completely disable the use of file extensions, you must set both of the following:
- useSuffixPatternMatching(false),
- favorPathExtension(false).
References:
stackoverflow.
docs.spring.io
More Related questions...