SHARE
TWEET

Untitled

sergei-2808 Jan 24th, 2020 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. java:
  2.     @GetMapping("/data")
  3.     @ResponseBody
  4.     public String data(@RequestParam String hint) {
  5.         System.out.println(search(hint));
  6.         return search(hint) ;
  7.     }
  8. js:
  9.             $.ajax({
  10.                     url: 'data',
  11.                     type: 'GET',
  12.                     dataType: 'json',
  13.                     contentType: 'application/json',
  14.                     mimeType: 'application/json',
  15.                 data: {
  16.                     hint: Value,
  17.                 },
  18.                 success: (function (data) {
  19.                     console.log(data);
  20.                 })
  21.                 });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top