当前位置:网站首页>Jeesite login process
Jeesite login process
2022-07-18 11:31:00 【victor-gx】
jeesite The login process
Running successfully jeesite After the project , Enter... In the browser 127.0.0.1:8980/js perhaps localhost:8980/js Will execute src/main/java/com/jeesite/modules/sys/web/LoginController Class login Method
/** * The login page */
@RequestMapping(value = "login")
public String login(HttpServletRequest request, HttpServletResponse response, Model model) {
....
....
....
return "modules/sys/sysLogin";
}
This code will be executed twice , Finally, the return path modules/sys/sysLogin, At this time, the browser will jump to the login interface http://127.0.0.1:8980/js/a/login
/a Because in jeesite-core.yml The front-end base path is set in the file
# Manage basic path
adminPath: /a
Jump to /login Because in jeesite-core.yml Home page path is set in
# Home page path
defaultPath: ${shiro.loginUrl}
# Login related settings
loginUrl: ${adminPath}/login
logoutUrl: ${shiro.loginUrl}
successUrl: ${adminPath}/index
Without login, you will enter ${adminPath}/login route , and adminPath Set to /a, So the browser will jump to the login interface http://127.0.0.1:8980/js/a/login
After entering the user name and password , Will perform src/main/java/com/jeesite/modules/sys/web/LoginController Class index Method
/** * Login successful , Enter the Management Homepage */
@RequestMapping(value = "index")
public String index(HttpServletRequest request, HttpServletResponse response, Model model) {
....
....
....
// Return to the main page view
return "modules/sys/sysIndex";
}
First, user permissions will be verified , stay jeesite-core.yml Set in the file
filterChainDefinitions: |
${adminPath}/** = user
At this time, the user has user jurisdiction .
Next, we will get user information , After successfully obtaining information, you will get __url:http://127.0.0.1:8980/js/a/index, Now it's Ajax The operation will return the string of login information , And tell the browser the interface to jump to next http://127.0.0.1:8980/js/a/index,
After the browser gets the page to jump , Will be re executed index Method , This is no longer Ajax operation , At the same time, the browser will not get the page to jump , Next, the program will return the specified user type employee, Finally, the return path modules/sys/sysIndex, Get into index Interface
边栏推荐
- The relationship between loss function and maximum likelihood estimation | understanding of cross entropy
- Understand the common classification of software testing
- 现货黄金走势图中三条均线的秘密
- Pbft brief introduction
- 英特尔助力开立医疗推动超声产检智能化
- Installation method of memory module on dual channel (Dual CPU) server motherboard
- LeetCode 第22天
- JS array object in goods_ With the same ID and an object, put goods_ size_ Add ID values together
- 干货解析 | 公有云时代,如何上好云、管好云?点击报名,解答全部疑问!
- Two bytes, carried out by the interviewer and shared with everyone
猜你喜欢

Sqlyog will be stuck if it is not operated for a period of time (solution)

Happy event, a long planned new era of shopping

Xunwei domestic development board three development boards worth starting with
![[Flink] Flink connection reject: localhost / 127.0.0.1:8081](/img/46/6c5071016a04e511f1bbb9fe3f7643.jpg)
[Flink] Flink connection reject: localhost / 127.0.0.1:8081

Flink (I) overview

喜事乐,一场蓄谋已久的购物新时代

Two bytes, carried out by the interviewer and shared with everyone

深圳开展建设工程合同网签试点,法大大助力建筑数字化

迅为国产开发板值得入手的三款开发板

Reading the pointpillar code of openpcdet -- Part 2: network structure
随机推荐
Ping message and ICMP message header
现货黄金走势图中三条均线的秘密
微信小程序如何实现下拉刷新?
Flink (VII) Flink SQL
Offre de doigts 64. Trouver 1 + 2 +... + n
Course design of traffic light single chip microcomputer
Flink(七)Flink SQL
Double thread guessing numbers
【漫步刷题路】- 逆序字符串II
openpcdet之pointpillar代码阅读——第二篇:网络结构
【sql面试题】求连续点击三次的用户数,而且中间不能有别人的点击
曾经辉煌一世的流媒体协议RTMP是什么样的?它能完全被取代吗?一文带您走进RTMP的世界
Some thoughts on thread switching
【开发教程6】疯壳·开源蓝牙智能健康手表-触摸
2022年全国最新消防设施操作员(初级消防设施操作员)模拟试题及答案
mysql 查询时过滤 html
jeesite登录流程
autojs脚本备忘
Flink (VI) fault tolerance mechanism
Filter