java - Mapping every URL that has no file extension to a sub-path in Spring Boot? -


i have following web app layout:

/webapp     /patha         /index.jsp         /style.css     /pathb         /pathb1             /index.jsp     ...     /pathx         /index.jsp 

how can create mapping in spring boot such as:

  • /patha maps /patha/index.jsp,
  • /pathb/pathb1 maps /pathb/pathb1/index.jsp
  • etc.

essentially, uri has no file extension specified (e.g. /patha/style.css should excluded mapping) should redirected uri has index.jsp appended. i'd apply mapping general rule, don't have specify every possible path should mapped this.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -