Skip to content

Commit 55d1a5e

Browse files
committed
Adicionado aula 6.9 com código-fonte atualizado para Spring Boot 2.5.0
1 parent 0f7d294 commit 55d1a5e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<html>
2+
<body>
3+
4+
<button onclick="buscar()">Buscar categorias</button>
5+
6+
<script>
7+
function printResponse() {
8+
console.log(this.responseText);
9+
}
10+
11+
function buscar() {
12+
var req = new XMLHttpRequest();
13+
req.addEventListener("load", printResponse);
14+
req.open("GET", "http://localhost:8080/categorias");
15+
req.setRequestHeader('HEADER1', 'VALOR');
16+
17+
req.send();
18+
}
19+
</script>
20+
21+
</body>
22+
</html>

0 commit comments

Comments
 (0)