fix:test2页面
This commit is contained in:
@@ -9,9 +9,4 @@ public class TestController {
|
|||||||
public String test() {
|
public String test() {
|
||||||
return "111";
|
return "111";
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/test2")
|
|
||||||
public String test2() {
|
|
||||||
return "222";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.demo.controller;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
public class TestController2 {
|
||||||
|
@GetMapping("/test2")
|
||||||
|
public String test2() {
|
||||||
|
return "222";
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user