@Controller public class TaskController extends Object
| 构造器和说明 |
|---|
TaskController() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(CustomTask task,
javax.servlet.http.HttpServletResponse response) |
void |
add(Long taskCode,
javax.servlet.http.HttpServletResponse response) |
void |
enable(Long taskCode,
boolean status,
javax.servlet.http.HttpServletResponse response) |
void |
hello(String id) |
void |
query(javax.servlet.http.HttpServletResponse response) |
void |
query(Long taskCode,
javax.servlet.http.HttpServletResponse response) |
void |
update(CustomTask task,
javax.servlet.http.HttpServletResponse response) |
public void hello(String id)
@PostMapping(value="/task")
public void add(@RequestBody
CustomTask task,
javax.servlet.http.HttpServletResponse response)
throws NoSuchMethodException,
NotFoundTaskException,
IOException
@DeleteMapping(value="/task/{taskCode}")
public void add(@PathVariable
Long taskCode,
javax.servlet.http.HttpServletResponse response)
throws NotFoundTaskException,
IOException
@PutMapping(value="/task")
public void update(@RequestBody
CustomTask task,
javax.servlet.http.HttpServletResponse response)
throws NoSuchMethodException,
NotFoundTaskException,
IOException
@GetMapping(value="/task/{taskCode}")
public void query(@PathVariable
Long taskCode,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOException@GetMapping(value="/task")
public void query(javax.servlet.http.HttpServletResponse response)
throws IOException
IOException@PutMapping(value="/task/{taskCode}/{status}")
public void enable(@PathVariable
Long taskCode,
@PathVariable
boolean status,
javax.servlet.http.HttpServletResponse response)
throws IOException,
NotFoundTaskException
Copyright © 2022. All rights reserved.