Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一直报401错误 #3

Open
insomniatt opened this issue Sep 14, 2018 · 8 comments
Open

一直报401错误 #3

insomniatt opened this issue Sep 14, 2018 · 8 comments

Comments

@insomniatt
Copy link

项目启动好之后
安装了 mysql redis
我也看了 shiro config
但是一直报401
不知道怎么写到 jwt 缓存中 一直取不到 login 的用户名密码

@return-stay
Copy link

请问你这个问题解决了吗?

@coderzc
Copy link
Contributor

coderzc commented Jan 8, 2019

401是未登陆,需要在未登录下访问的接口需要去src/main/java/com/ok/okhelper/shiro/ShiroConfiguration.java排除
image

@return-stay
Copy link

register和check_username 都会报401的错误;这一块没有修改过。

@return-stay
Copy link

搞明白,最后的是把请求接口里面的api去掉就可以了

@coderzc
Copy link
Contributor

coderzc commented Jan 8, 2019

文档上的前缀是写死的,忘记改了
image

@return-stay
Copy link

好的,谢谢~

@david-cheng
Copy link

我加和不加api 都报401,然后有个奇怪的现象是 我本地8088起来就可以正常运行,我用域名代理8088 然后所有接口都是401

@zhanghang-9527
Copy link

请问解决了吗?我用postman访问接口也是一直显示401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants