title: Unable to apply a predicate
body: <p>When I run my application it gives me below error ,</p>
  <pre><code>java: incompatible types: com.google.common.base.Predicate&lt;java.lang.String&gt; cannot be converted to java.util.function.Predicate&lt;java.lang.String&gt;
  </code></pre>
  <p>In Pathselectors.regex(&quot;/error&quot;) line it says Required type:</p>
  <p>com.google.common.base.Predicate
  
  Provided:
  java.util.function.Predicate
  </p>
  <pre><code>private Predicate&lt;String&gt; paths() {
          // Exclude Springs Basic Error Controller
          return Predicates.not(PathSelectors.regex(&quot;/error&quot;));
      
  }
  
  </code></pre>
  <p>Please help, thanks</p>