title: Spring Boot o.s.web.servlet.pagenotfound
body: <p>I am trying to call spring-boot rest controller but it throws o.s.web.servlet.pagenotfound spring boot, I have seen too many answers here but none of these helped me.</p>
  
  <p>controller class is as below</p>
  
  <pre><code>@RestController
  @RequestMapping("/users")
  public class UsersController {
  
  @Autowired
  private UsersRepository usersRepository;
  
  @GetMapping("/users")
  public List&lt;Users&gt; getAllUsers() {
      return usersRepository.findAll();
  }
  }
  </code></pre>
  
  <p>And application.yml is as below</p>
  
  <pre><code> spring.datasource.url = jdbc:mysql://localhost:3306/mydb?useSSL=false
   spring.datasource.username=mine
   spring.datasource.password=mine
  </code></pre>
  
  <p>kindly let me know if any further information required</p>