@Autowired was missing in Application.java for PermissionRepository