Vue uses Axios

Step 1: Install Axios

$ npm install axios

Step 2: Import Axios in main.js

import VueAxios from 'vue-axios';
import axios from 'axios';
Vue.prototype.$axios = axios;

Step 3: Write the Axios request code

created(){
    const  _this = this
    this.$axios.get('http://localhost:8081/book/findall').then(function (resp) {
        _this.books = resp.data;
      })

Read More: