esta acontecendo esse erro
POST http://0.0.0.0:8080/money net::ERR_ABORTED 404 (Not Found)
front
var request = new Request(‘http://0.0.0.0:8080/money’, {method: ‘POST’, headers: {
‘Accept’: ‘application/json’,
‘Content-Type’: ‘application/json’
} ,mode: ‘no-cors’, body: JSON.stringify(dados)});
fetch(request)
.then(function(response) { console.log(response.ok)})
}
back
public class Resource {
@POST
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@Path(“/money”)
public Response money(Data data) {
System.out.println(data);
return Response.ok().build();
}
}
alguem sabe solucionar?