title: What is the difference between /* and /** pattern in Spring boot?
body: <p>I was trying to register certain URLs for a Filter when I noticed that there is a difference between <strong><code>/*</code></strong> and <strong><code>/**</code></strong> patterns.</p>
  
  <pre class="lang-java prettyprint-override"><code>    @Bean
      public FilterRegistrationBean tokenAuthenticationFilterBean() {
          FilterRegistrationBean registration = new FilterRegistrationBean(tokenAuthenticationFilter);
          registration.addUrlPatterns("/api/**","/ping","/api/*");
          return registration;
      }
  </code></pre>
  
  <p>What is the difference between these patterns?</p>