class SolrController {

    @RequestMapping("/updateUser")
    public void updateUser() throws IOException, SolrServerException {
        User user = new User();
        user.setId("8888888");
        user.setName("知然");

        solrClient.addBean(user);
        solrClient.commit();
    }

}