关于idea写springboot在postman中调用请求404

发布时间 2023-10-18 22:55:20作者: 艾鑫4646

 一定要让cotroller包在com.example.demo下不然就会404

还有一个点是Error: getaddrinfo ENOTFOUND local   原因:1.localhost没有绑定127.0.0.1    2.http请求的地址写错了,仔细核对一下看是不是输错了,我是大意输入错了,localhost输入成local了