title: The requested route has not been mapped in Spark
body: <p>I want to do something to sign up users with spark+java+hibernate+postgres </p>
  
  <p>This is my code:</p>
  
  <pre><code>post("/registrar", (request, response) -&gt; {
          EntityManagerFactory emf = Persistence.
           createEntityManagerFactory("compradorcitoPU");
           EntityManager em = emf.createEntityManager();em.getTransaction().begin();
           em.persist(u);
           em.getTransaction().commit();
           em.close(); return null; });
  </code></pre>
  
  <p>but this error shows up: </p>
  
  <blockquote>
    <p>INFO spark.webserver.MatcherFilter - The requested route
    [/registrarnull] has not been mapped in Spark</p>
  </blockquote>