title: Spring: Parameter conditions "loanTitle" not met for actual request parameters
body: <p>Java Spring MVC. I can't open url without a parameter. I found suggestions in Internet(<a href="https://stackoverflow.com/questions/45445036/spring-mvc-thymeleaf-error-parameter-conditions-not-met-for-actual-request-para">Spring MVC Thymeleaf Error: Parameter conditions not met for actual request parameters</a>, <a href="http://www.baeldung.com/spring-requestmapping" rel="nofollow noreferrer">http://www.baeldung.com/spring-requestmapping</a>), but they didn't help me. </p>
  
  <pre><code>@Controller
  @RequestMapping("/loans/")
  public class LoanController {
  
      @Autowired 
      LoanDAO loanDAO;
  
      @GetMapping(value= "objectloan", params = {"loanTitle"})
      public String index(Model theModel, HttpSession session, @RequestParam(value = "loanTitle", required = false, defaultValue = "") Optional&lt;String&gt; loanTitle)
      {
  ....
      }
  </code></pre>
  
  <p>URL works</p>
  
  <blockquote>
    <p><a href="http://localhost:8080/college/loans/objectloan?loanTitle=test" rel="nofollow noreferrer">http://localhost:8080/college/loans/objectloan?loanTitle=test</a></p>
  </blockquote>
  
  <p>URL with error</p>
  
  <blockquote>
    <p><a href="http://localhost:8080/college/loans/objectloan" rel="nofollow noreferrer">http://localhost:8080/college/loans/objectloan</a></p>
  </blockquote>
  
  <p>Error:</p>
  
  <pre><code>Type Status Report
  Message Parameter conditions "loanTitle" not met for actual request parameters:
  Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
  </code></pre>