title: How to see result of findByUsername delievered by CrudRepository
body: <p>Need to see the search result of the:</p>
  
  <pre><code>@Repository
  public interface UserRepository extends CrudRepository&lt;User, Long&gt; {    
      public User findByUsername(String username);        
  }
  </code></pre>
  
  <p>which I call from my controller:</p>
  
  <pre><code>@RequestMapping(value = "/users/find", method = RequestMethod.GET)
  public @ResponseBody User findByUsername(@RequestParam("username") String userName) {
      return usersRepo.findByUsername(userName);
  }
  </code></pre>
  
  <p>The method above is called via:</p>
  
  <pre><code>@GET("/users/find")
  public User findByUsername(String userName); 
  </code></pre>
  
  <p>And the class User is here:</p>
  
  <pre><code>@Entity
  public class User {
  
      @Id
      @GeneratedValue(strategy=GenerationType.AUTO)
      private long id;    
  
      private String username;
      etc...
  </code></pre>
  
  <p>Results of the default methods I can see in my browser by typing e.g. localhost:8080/users</p>
  
  <p>I tried many possible requests but it seems that I'm missing something. Any help is appreciated.</p>