this one helps. It looks like you are violating the
same origin policy restriction which prevents you from sending cross domain AJAX calls. You have used http://localhost:8080/myController/getInfo as url but this will only work if the HTML page containing this javascript was served from http://localhost:8080/. Otherwise the browser won't allow you to perform this AJAX call.
As a possible workaround you could modify your REST service so that it supports
JSONP in addition to JSON. Then you will be able to send GET requests to it (POST doesn't work with jQuery's JSONP implementation because it is using a