spring.mvc.pathmatch.matching-strategy=ant_path_matcher 是一个配置项,用于设置 Spring MVC 的路径匹配策略。在这个例子中,它设置为使用 Ant Path Matcher(Ant 风格的路径匹配器)。

Ant Path Matcher 是一种基于 Ant 构建工具的路径匹配算法,它可以支持更灵活的路径模式匹配。通过将 spring.mvc.pathmatch.matching-strategy 设置为 ant_path_matcher,Spring MVC 将使用 Ant Path Matcher 进行路径匹配。

例如:http://ip:port/context_path/testRequest等同于http://ip:port/context_path///////testRequest