【发布时间】:2019-06-09 21:12:18
【问题描述】:
我有一个 web 应用程序,它在一个 war 文件中并使用 tomcat 运行,首先我使用 MySQL 5.7 运行我的数据库,然后我运行一个已经使用文件制作的 spring boot,之后我部署我的 war 文件并运行应用程序,但是在那里是app和数据库没有连接
function sendData(data) {
$.ajax({
url : link + ':3306/v1/user/login',
type : 'POST',
contentType : "application/json; charset=utf-8",
data : data,
dataType : 'json',
success : function(response) {
processResponse(response);
},
error: function(data, textStatus, jqXHR) {
handleAjaxError(data, textStatus, jqXHR);
}
});
}
【问题讨论】:
标签: javascript mysql json spring-boot tomcat