I am currently working on a web application that is stored in a war file and runs with Tomcat. Initially, I start my MySQL 5.7 database, followed by running a Spring Boot project created with the necessary files. After completing these steps, I deploy my war file and launch the application. However, I am facing an issue where there seems to be no connection established between the app and the database.
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);
}
});
}