@Test public void addUser() throws IOException, SolrServerException { User user = new User(); user.setId("8888888"); user.setName("龙知然"); solrClient.addBean(user); solrClient.commit(); }
@RequestMapping("/addUser") public void addUser() throws IOException, SolrServerException { User user = new User(); user.setId("8888888"); user.setName("龙知然"); solrClient.addBean(user); solrClient.commit(); }
SolrController { @RequestMapping("/addUser") public void addUser() throws IOException, SolrServerException { User user = new User(); user.setId("8888888"); user.setName("龙知然"); solrClient.addBean(user); solrClient.commit(); } }
SolrController { @RequestMapping("/addUser") public void addUser() throws IOException, SolrServerException { User user = new User(); user.setId("8888888"); user.setName("龙知然"); solrClient.addBean(user); solrClient.commit(); }  }
SolrController { @RequestMapping("/addUser") public void addUser() throws IOException, SolrServerException { User user = new User(); user.setId("8888888"); user.setName("龙知然"); solrClient.addBean(user); solrClient.commit(); }  @RequestMapping("/addUsers") void addUsers(); @RequestMapping("/addUser") void addUser(); @RequestMapping("/getById/{id}") String getByIdFromSolr(@PathVariable("id") String id); @RequestMapping("/updateUser") void updateUser(); @RequestMapping("/delById/{id}") String delById(@PathVariable("id") String id); @RequestMapping("/delAll") void delAll(); @RequestMapping("/queryAllOne") String queryAllOne(); @RequestMapping("/queryAll") Object queryAll(); }
SolrController { @RequestMapping("/addUser") public void addUser() throws IOException, SolrServerException { User user = new User(); user.setId("8888888"); user.setName("龙知然"); solrClient.addBean(user); solrClient.commit(); }  @RequestMapping("/addUsers") void addUsers(); @RequestMapping("/addUser") void addUser(); @RequestMapping("/getById/{id}") String getByIdFromSolr(@PathVariable("id") String id); @RequestMapping("/updateUser") void updateUser(); @RequestMapping("/delById/{id}") String delById(@PathVariable("id") String id); @RequestMapping("/delAll") void delAll(); @RequestMapping("/queryAllOne") String queryAllOne(); @RequestMapping("/queryAll") Object queryAll();  }