Spring Controller Mapping Issues - Double Wildcard -


i map following url:

/resource/{path/to/git/repo.git}/{branch}/{path/within/repository}

to spring framework controller. having issues. have tried following pattern no success:

/resource/**.git/{branch}/**

  • matches resource/anything.git/branch/path/etc (no slashes in path git repo)
  • does not match resource/path/anything.git/branch/path/etc expect

i have tried /resource/**/.git/{branch}/** in testing behaves expected, allowing number of slashes in both ant pattern wildcards, not suit situation added slash.

is there way map without resorting /resource/** , doing work of matching in controller?

i ended fixing using mapping:

/resource/**/*.git/{branch}/**

a side effect of example given in original post working


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -