Spring - the MVC code configuration file
Js code can request the second to the first result is 404
<script SRC="https://bbs.csdn.net/topics/${pageContext. Request. ContextPath}/js/axios. Js" & gt; </script>
<script SRC="https://unpkg.com/axios/dist/axios.min.js" & gt; </script>
<script>
Axios. Post (' http://localhost/user3 ', [{
The username: 'Joe',
Age: 20,
Date: '1997-10-10'
}, {
The username: 'bill',
Age: 30,
Date: '1997-10-11'
}]). Then (res=& gt; {
The console. The log (res) data)
})
</script>