出现的问题
查阅后台出现问题:http的请求头不对
2019
-05
-22 13
:25
:41
- Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
查阅了相关资料,得到了两种解决方案
前端发送的请求http,而不是https
配置nginx的相关配置,也就是配置ssl证书(这个到时候补充)
那么针对第一种,我们只需要在prod.env.js修改BASE_API,使用http