Skip to content

fix : lecutres/courses 401 Error #19

@gisu1102

Description

@gisu1102

📄 Description

fix : lecutres/courses 401 Error

LikeFeignClient에 base path가 없음

lecture-api의 Feign 클라이언트:
@FeignClient(name = "likeClient", url = "${server.feign.url}") // path 없음
public interface LikeFeignClient {
@GetMapping("/list") // → GET {url}/list
}

core의 실제 컨트롤러:
@RestController
@RequestMapping("/likes") // base path = /likes
public class LikeController {
@GetMapping("/list") // → GET /likes/list
}

@FeignClient에 path = "/likes"가 빠져있어서 http://codin-core-api:8080/list로 호출되고, core-api에는 GET /likes/list만 존재하니 No endpoint GET /list 에러 발생

🙋🏻 Reference

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 BugFix버그 발생 또는 해결

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions