What does "antMatchers" mean?

I'm learning spring-boot and in order for my brain to accept some things, it needs to find a meaningful explanation for those things. Can anyone tell me what "ant" means in "antMatchers"? What is insect like "ant" has to do with mapping between resource and by calling REST?

I know this is not a forum for learning a language, but I think developers also have the right to understand or discard logical / illogical things.

Thank;)

+3


source to share


2 answers


Coming from the Apache Ant Project, Apache Ant is a Java library and command line tool whose job it is to manage the processes described in the build files as targets and extension points that depend on each other. Here is the Apache Ant Home and Spring Doc for AntPathMatcher , it says "Some of this mapping code was kindly taken from Apache Ant." So "antMatchers" means the implementation for Ant -style path patterns in mappings.



+2


source


The term comes from the archaic Apache Ant build system. In Ant, paths were matched against a simple pattern containing characters *

representing any string, **

meaning "recursive", descending any number of directories / folders. So ant -matrix: /a/b/*/d/**/z

can match: /a/b/w/d/x/y/z

because bit w

matches *

and bit /x/y/

matches **

.



+2


source







All Articles