1、使用默认方式发送无参请求
默认使用get请求
<script src="https://unpkg.com/axios/dist/axios/main.js"></script>
<script>
axios({
url:'https://localhost:9999/student/student/getAllStudent'
}).then(res=>{
console.log(res)
})
</script>
2、使用请求方式为get的无参请求
<script src="https://unpkg.com/axios/dist/axios/main.js"></script>
<script>
axios({
url:'https://localhost:9999/student/student/getAllStudent',
method:'get'
}).then(res=>{
console.log(res)
})
</script>
3、使用get方式发送