菜鸡落泪:自己新建了一个模块,访问自己写的路由404
我新建了一个user模块,并写了一个控制器:package com.common.controller;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* @program: jeecg-boot-parent
* @description: class_description
* @author: Bill
* @create: 2021/01/16 10:21
* @blog: webpro.ltd
*/
@Slf4j
@RestController
@RequestMapping("/user/demo")
@Api(tags="校园小镇前端API")
public class TestController {
@ApiOperation("demo1")
@GetMapping("/demo1")
public String demo1(@RequestParam("id") String id) {
return "接收到了ID:" + id;
}
@ApiOperation("demo2")
@GetMapping("/demo2")
public String demo2() {
return "接收到了ID:";
}
}
已经在shiro中排除拦截,但是显示404,以前只做过一个模块的springboot项目,求各位大佬帮助,谢谢!
Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Sat Jan 16 13:18:55 CST 2021
There was an unexpected error (type=Not Found, status=404).
No message available
页:
[1]