Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does double star regex means in spring security url

i recently came across a spring project where i saw a security configuration like following

<intercept-url pattern="/register/**" access="permitAll()" />

After google and digging more i was not able to find out what the double star means /register/** It would be great if anybody could explain me. What is the significance of stars in urls spring security.

like image 948
Saurabh Kumar Avatar asked Sep 10 '14 20:09

Saurabh Kumar


1 Answers

These patters are Ant-style path patterns (https://ant.apache.org/manual/dirtasks.html#patterns). The ** matches zero or more 'directories' in a path, take a look at AntPathMatcher

like image 131
Sergi Almar Avatar answered Nov 13 '22 22:11

Sergi Almar