У меня возникли проблемы с отображением содержимого моей таблицы на моей html-странице, я подключил свою базу данных к приложению.
это мой html-код страницы р>
Issue Hardware
Issue Hardware
Issue Hardware
document.getElementById('issue-hardware-form').addEventListener('submit', function(event) {
event.preventDefault();
const id = document.getElementById('hardware-id').value;
fetch(`/hardware/issue/${id}`, {
method: 'POST'
})
.then(response => response.json())
.then(data => {
alert('Hardware issued successfully');
document.getElementById('hardware-id').value = '';
});
});
Я получаю эту ошибку
{"timestamp":"2024-06-24T15:47:49.005+00:00","status":405,"error":"Method Not Allowed","path":"/static/css/view-available-hardware.html"}
Подробнее здесь: https://stackoverflow.com/questions/786 ... gboot-jdbc