mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
2024-05 spring-19-ajax updated
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
+1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user