报错:Invalid character found in method name. HTTP method names must be tokens
解决:
将访问路径从https://localhost:8080改为http://localhost:8080即可
const request = axios.create({
baseURL:'http://localhost:8080',
timeout: 5000
})
如果使用了https,则会报错如下
报错:Invalid character found in method name. HTTP method names must be tokens
解决:
将访问路径从https://localhost:8080改为http://localhost:8080即可
const request = axios.create({
baseURL:'http://localhost:8080',
timeout: 5000
})
如果使用了https,则会报错如下