答案 0 :(得分:2)
@RestController
@RequestMapping(produces = arrayOf(MediaType.APPLICATION_JSON_UTF8_VALUE))
class ClientActionsController(private var clientActionsService: ClientActionsService) {
@PostMapping(value = "/file", consumes = arrayOf(MediaType.MULTIPART_FORM_DATA_VALUE))
fun saveFile(request: HttpServletRequest): ResponseEntity<String> {
println(request.getPart("fileDescription"))
println(request.getPart("fileExtension"))
println(request.getPart("file"))
return ResponseEntity(clientActionsService.saveFile(request), HttpStatus.CREATED)
}
}
Settings -> System -> About Emulated Device
。只有这样您才能访问Build number