我收到未找到的Jquery错误jquery.min.js:4 POST / upphotophoto 404(未找到)虽然JQuery包含为https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
我使用演示示例在后端创建一个Java uploadphoto,并将demo.js操作修改为
$('#fileupload').fileupload({
// Uncomment the following to send cross-domain cookies:
//xhrFields: {withCredentials: true},
url: '/uploadphoto'
});
)
错误不是告诉您没有找到jQuery。该错误告诉您jQuery收到404响应,当它与url'uploadphoto'联系时表示“未找到”。检查网址“ uploadphoto”是否确实具有POST请求处理程序。