Skip to content

Commit

Permalink
代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
javamxd committed Apr 19, 2021
1 parent 21a393e commit 49609c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/ssssssss/magicapi/modules/HttpModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class HttpModule implements MagicModule {
private HttpMethod method = HttpMethod.GET;
private HttpEntity<Object> entity = null;
private Object requestBody;
private ResponseEntity<Object> responseEntity;

public HttpModule(RestTemplate template) {
this.template = template;
Expand All @@ -47,7 +46,7 @@ public String getModuleName() {
}

@Comment("创建连接")
public HttpModule connection(@Comment("目标URL") String url) {
public HttpModule connect(@Comment("目标URL") String url) {
return new HttpModule(template, url);
}

Expand Down

0 comments on commit 49609c0

Please sign in to comment.