Commit f678472c by 刘宇峰

用户组织feign开放接口

1 parent ce7e175e
......@@ -19,6 +19,9 @@ import java.util.List;
)
public interface UserService {
@GetMapping(value = "/findAll")
R<List<User>> findAll();
@GetMapping(value = "/getById")
R<User> getById(@RequestParam("id") Long id);
......
......@@ -18,6 +18,12 @@ public class UserServiceFallbackImpl implements UserService {
private Throwable cause;
@Override
public R<List<User>> findAll() {
log.warn("熔断啦 {}", cause.getMessage());
return R.ok();
}
@Override
public R<User> getById(Long id) {
log.warn("熔断啦 {}", cause.getMessage());
return R.ok();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!