You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
671 B
23 lines
671 B
5 years ago
|
# 2.x升3.x注意事项
|
||
|
|
||
|
升级到3.x后`本地访问接口`方式会有不同。
|
||
|
|
||
|
```java
|
||
|
@ApiMapping(value = "alipay.story.get")
|
||
|
public StoryResult getStory(StoryParam param) {
|
||
|
StoryResult story = new StoryResult();
|
||
|
story.setId(1L);
|
||
|
story.setName("海底小纵队(alipay.story.get1.0), port:" + environment.getProperty("server.port") + ", param:" + param);
|
||
|
return story;
|
||
|
}
|
||
|
```
|
||
|
|
||
|
- 2.x版本访问方式:
|
||
|
|
||
|
`http://localhost:2222/alipay.story.get/?name=Jim&version=1.0`
|
||
|
|
||
|
- 3.x版本访问方式:
|
||
|
|
||
|
`http://localhost:2222/alipay.story.get/1.0/?name=Jim`
|
||
|
|
||
|
3.x版本中把版本号融合在了url中,如果这个功能没有用到,可以放心升级。
|