title: Why java LONG_MAX is not same with vue axios data?? How to fix that?
body: <p>I am using java 8 for the backend and Vue CDN(2.5.16) for the front-end. My codes are giving below</p>
  <p><strong>BACKEND API</strong>:</p>
  <pre><code>@RequestMapping(mapping = &quot;/get-long-max&quot;, requestMethod = RequestMethod.GET)
  private long getLONG() {
    System.out.println(Long.MAX_VALUE);
    return Long.MAX_VALUE;
  }
  </code></pre>
  <p><strong>Front-end:</strong></p>
  <pre><code>getLongValue() {
    return axios.get('http://localhost:8080/get-long-max.do').
    then(response =&gt; {
      console.log(response.data.payload);
      return response.data.payload;
    }).catch(error =&gt; console.error(error));
  }
  </code></pre>
  <p>Whenever I call the function from the client-side. The Long_MAX is not the same for both ends.
  Java <code>system.out</code> shows the value <code>9223372036854775807</code> and the front end value is <code>9223372036854776000</code>.
  <a href="https://i.stack.imgur.com/JHmmV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JHmmV.png" alt="enter image description here" /></a></p>
  <p>Please help to fix it. Thanks in advance.</p>
  <p><strong>Update 1</strong>:</p>
  <p>When I hit the URL directly on the browser it seems ok <a href="https://i.stack.imgur.com/Pkp3w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pkp3w.png" alt="enter image description here" /></a></p>