You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
507 B
17 lines
507 B
package com.example.demo.controller;
|
|
|
|
import com.example.demo.model.JsonResponse;
|
|
import com.example.demo.model.Result;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@RestController
|
|
@RequestMapping("/api")
|
|
public class WebController {
|
|
|
|
@GetMapping("/hello")
|
|
public JsonResponse<String> result(){
|
|
return new JsonResponse<>(Result.OK, "hello");
|
|
}
|
|
}
|
|
|