hello i'm using spring boot , restful web service and angularjs,
this is my restControlleur
@RestController
@RequestMapping("/structure")
public class StructureNotificationRestContolleur {
@Autowired
StructureNotificationService StructureNotif;
@Autowired
ChampService champService;
@RequestMapping(value = "/deleteChamp/{ch}", method=RequestMethod.DELETE )
public @ResponseBody void DeleteChamp(@PathVariable (value="ch") int ch)
{
champService.DeleteChamp(ch);
}
there is the button to delete :
$scope.deleteST= function(ids)
{
$http.delete('/structure/deleteChamp/'+ids).
success(function(data) {
alert(ids);
});
}
but there is the error : o.s.web.servlet.PageNotFound : Request method 'DELETE' not supported
???