Commit 4f3c6779 by 钱炳权

纯净版后端

parent f3b4df34
......@@ -29,6 +29,7 @@ public class AlfnetController {
*/
@RequestMapping(value = "/testStart", method = RequestMethod.POST)
public AjaxResult start(@RequestBody final CmdStartParams cmdStartParams) {
System.out.println(cmdStartParams);
//todo 捕获子线程错误
try {
new Thread(new Runnable() {
......
......@@ -41,7 +41,7 @@ public class SeedFileController {
/**
* 种子文件删除接口
*/
@RequestMapping(value = "/delete", method = RequestMethod.POST)
@RequestMapping(value = "/delete/{filName}", method = RequestMethod.POST)
public AjaxResult delete(@RequestParam("fileName") String fileName) {
try {
service.delFile(fileName);
......
......@@ -19,4 +19,21 @@ public class CmdStartParams {
String script;//script
int stateSelectionAlgo;
int seedSelectionAlgo;
@Override
public String toString() {
return "CmdStartParams{" +
"netinfo='" + netinfo + '\'' +
", protopcol='" + protopcol + '\'' +
", waiting=" + waiting +
", nsname='" + nsname + '\'' +
", kill=" + kill +
", awareMode=" + awareMode +
", regionMutationOperators=" + regionMutationOperators +
", falseNegativeMode=" + falseNegativeMode +
", script='" + script + '\'' +
", stateSelectionAlgo=" + stateSelectionAlgo +
", seedSelectionAlgo=" + seedSelectionAlgo +
'}';
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment