1.使用@RequestParam注入的地址拼写:
url拼接区别:
参数需要写参数名:’?typeId=’ + this.dictionnaryId
url = ‘http://192.168.01.52:8080/dictionary/findDictionarybyTypeId?typeId=’ + this.dictionnaryId + ‘&dictionaryInfo=’ + this.info;
后台参数接收区别:
2.使用@PathVariable注入的地址拼写:
url拼接区别:
参数直接传值:this.dictionnaryId
const url = ‘http://192.168.01.52:8080/dictionary/findDictionarybyTypeId/’ + this.dictionnaryId + ‘?dictionaryInfo=’ + this.info;
后台参数接收区别: