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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -