2024-05 spring-19-ajax updated

This commit is contained in:
stvort
2024-06-17 22:39:06 +04:00
parent 86f23d45a0
commit c46ee45f70
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -62,13 +62,14 @@
}
</script>
</head>
<body>
<button style = "width: 400px" onclick = "getDataByXmlHttpRequest()">Получить данные о Рике Санчес с помощью XMLHttpRequest</button><br/><br/>
<button style = "width: 400px" onclick = "getDataByJQuery()">Получить данные о Морти Смит с помощью JQuery</button><br/><br/>
<button style = "width: 400px" onclick = "getDataByAxios()">Получить данные о Саммер Смит с помощью Axios</button><br/><br/>
<button style = "width: 400px" onclick = "getDataByFetch()">Получить данные о Бэт Смит с помощью Fetch</button><br/><br/>
<img id = "characterPhoto" style = "width: 400px; height: 400px; border: 1px solid gray">
<pre id = "dataContainer"></pre>
<body>
</body>
</html>
@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Main {
// http://localhost:8080
// http://localhost:8080/api/persons
public static void main(String[] args) {
SpringApplication.run(Main.class);