Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新建模块,相同包名,也是报404 #861

Open
suxioanan opened this issue Oct 21, 2024 · 0 comments
Open

新建模块,相同包名,也是报404 #861

suxioanan opened this issue Oct 21, 2024 · 0 comments

Comments

@suxioanan
Copy link

suxioanan commented Oct 21, 2024

package me.zhengjie.rest;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
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;

@RestController
@requiredargsconstructor
@RequestMapping("/api/demo")
@Api(tags = "demo")
public class DemoController {

@ApiOperation("演示")
@GetMapping(value = "/test")
public ResponseEntity queryTables(@RequestParam(defaultValue = "") String name){
    return new ResponseEntity<>("111", HttpStatus.OK);
}

}

新模块下pom文件
image

sys下的pom文件
image
外层pom
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant