Comments (3)
绝大多数的接口都是基于Htpp Header里面的Authorization(就是Token)的,只有首次登录之后获取初始化信息的那个接口才使用了Session里面的token(这里是因为页面跳转,这时候不方便携带Token)。
from one.
登录后请求拿到token,拿着这个token到postman里请求接口,调用不了
from one.
虽然可以基于Token去调用,但是shiro里面做了API过滤,需要登录才能调用,所以直接在postman里面(没有Cookie)是调用不到的,会被shiro过滤掉。
解决办法有两个:
-
需要在postman里面调用的API不要在one-main工程里面运行,单独作为一个Spring Boot工程运行。
可以在program arguments里面设置application.yml的路径--server.port=8090--spring.config.location=....工程路径...\one-extend\one-main\src\main\resources\application.yml
from one.
Related Issues (20)
- 请教:登录页可以展现,登录进去是空白的。 HOT 9
- one.limuxi.me 502了 HOT 1
- 通过OneMainApplication启动时失败 HOT 8
- one-ui缺少vendor-mainfest.json文件 HOT 2
- 【one-ui】Cannot find module '../static /dll/vendor-mainfest.json' HOT 2
- 界面布局 footer 展示问题 HOT 9
- one-ui 生成dll文件错误 HOT 2
- 数据库脚本没更新吧? HOT 3
- Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project one-msg: There are test failures. HOT 3
- 演示的地址 登录不进去 一直显示登录中 HOT 4
- 测试地址上不去了 HOT 2
- one-ui菜单动态控制问题 HOT 1
- one - mysql(navicat).sql导入db后,启动app报错 HOT 4
- 生成的代码在one-ui的index模块里,请问如何新建module进行前端模块开发 HOT 3
- WeixinConfiguration导入报错 HOT 3
- one-ui一直跑不起 HOT 2
- 启动报数据库字段缺失错误 HOT 4
- 请问是怎么处理静态HTML页面访问的? HOT 1
- 请问下,项目还继续做下去不? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from one.