I have a working JpaRepository as an interface, and a working Restcontroller.
They are two types currently and I like to join them to one!
This is what i have:
@Repository
@RestController("problem")
public interface ProblemsController extends JpaRepository<Problem, Integer> {
@RequestMapping(value = "all", method = RequestMethod.GET)
List<Problem> findAll();
}
But when i call http://localhost:8080/application/problem/all I get a 404.
What to do?