m172371621 发表于 2019-7-15 11:28:48

后台,前端,redis 都启动成功!还是报 token失效!请帮忙看看

本帖最后由 m172371621 于 2019-7-15 11:40 编辑

后台,前端,redis, 都启好了。
然后直接访问: http://localhost:3000, 账号密码登陆,前端提示token失效。
后台报:
, 请问是什么问题?
<!------------------------ 后台 ------------------------------>


<!------------------------ 前端------------------------------>


<!------------------------ redis------------------------------>


<!------------------------ 首页------------------------------>


<!------------------------ 登陆------------------------>


<!------------------------ 后台错误信息------------------->



admin_jh9 发表于 2019-7-15 13:45:44

清空浏览器缓存试试

m172371621 发表于 2019-7-15 14:06:53

admin_jh9 发表于 2019-7-15 13:45 static/image/common/back.gif
清空浏览器缓存试试

浏览器缓存清理不行.
好像是这个问题:
为什么还是会拦截 “/sys/getEncryptedString” 的请求呢。



简拉吉茨德 发表于 2019-7-18 11:50:48

yml配置文件的邮箱和登陆令牌改了吗?

admin_jh9 发表于 2019-7-22 11:31:16

你代码是不是没更新全

nee 发表于 2019-7-22 12:33:14

admin_jh9 发表于 2019-7-22 11:31 static/image/common/back.gif
你代码是不是没更新全

我的也是同样的问题,代码应该没问题从githubclone下来的。

nee 发表于 2019-7-23 11:13:59

admin_jh9 发表于 2019-7-22 11:31 static/image/common/back.gif
你代码是不是没更新全

String token = httpServletRequest.getHeader(DefContants.X_ACCESS_TOKEN); 获取token为空

cuishili 发表于 2019-7-23 13:46:14

楼主好了吗,我和你一样的问题,后来改好了,是前台
'/jeecg-boot': {
      target: 'http://localhost:80', //请求本地 需要jeecg-boot后台项目
      ws: false,
      changeOrigin: true
      },
配置写错了,target: 'http://localhost:80' 这里写成了target: 'http://localhost:80/jeecg-boot'

nee 发表于 2019-7-23 14:43:55

cuishili 发表于 2019-7-23 13:46 static/image/common/back.gif
楼主好了吗,我和你一样的问题,后来改好了,是前台
'/jeecg-boot': {
      target: 'http://localhost: ...

好了。谢谢了
页: [1]
查看完整版本: 后台,前端,redis 都启动成功!还是报 token失效!请帮忙看看