当前位置:网站首页>Chapter 3 business function development (user access project)
Chapter 3 business function development (user access project)
2022-07-07 17:53:00 【Make a light】
3.1 Home function
Users visit the project home page , First, go to the login page .
First, identify the needs , Planning program access process , Draw well UML Sequence diagram rewriting code , It is convenient to manage the project in the future , At the same time, it is also a hard requirement of development specifications

I'm using processOn Online compilation website , You can also use it star uml,Rational Rose ,Rational Rose The download and cracking process of is connected as follows Click here .
Project structure


function tomcat
1.IndexController class
package com.it.crm.web.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class IndexController {
/*
Theoretically , to Controller Distribute url:http://127.0.0.1:8080/crm/
For simplicity , The frame regulations are omitted The name of the agreement ://ip:port/ Project name , use / Directly represents the above url, That is, to the root directory
*/
@RequestMapping(value = "/")
public String index(){
return "index";
}
}

2. Enter the marked blue shaded index.jsp
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<script type="text/javascript">
window.location.href = "settings/qx/user/toLogin.do";
</script>
</body>
</html>3. Jump to UserController
package com.it.crm.settings.web.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class UserController {
@RequestMapping(value = "/settings/qx/user/toLogin.do")
public String toLogin(){
return "settings/qx/user/login";
}
}
4. Enter the login interface
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"+request.getContextPath()+"/";
%>
<html>
<head>
<meta charset="UTF-8">
<base href="<%=basePath%>">
<link href="jquery/bootstrap_3.3.0/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="jquery/jquery-1.11.1-min.js"></script>
<script type="text/javascript" src="jquery/bootstrap_3.3.0/js/bootstrap.min.js"></script>
</head>
<body>
<div style="position: absolute; top: 0px; left: 0px; width: 60%;">
<img src="image/IMG_7114.JPG" style="width: 100%; height: 90%; position: relative; top: 50px;">
</div>
<div id="top" style="height: 50px; background-color: #3C3C3C; width: 100%;">
<div style="position: absolute; top: 5px; left: 0px; font-size: 30px; font-weight: 400; color: white; font-family: 'times new roman'">CRM <span style="font-size: 12px;">©2019 Power nodes </span></div>
</div>
<div style="position: absolute; top: 120px; right: 100px;width:450px;height:400px;border:1px solid #D5D5D5">
<div style="position: absolute; top: 0px; right: 60px;">
<div class="page-header">
<h1> Sign in </h1>
</div>
<form action="workbench/index.html" class="form-horizontal" role="form">
<div class="form-group form-group-lg">
<div style="width: 350px;">
<input class="form-control" type="text" placeholder=" user name ">
</div>
<div style="width: 350px; position: relative;top: 20px;">
<input class="form-control" type="password" placeholder=" password ">
</div>
<div class="checkbox" style="position: relative;top: 30px; left: 10px;">
<label>
<input type="checkbox"> Login free for ten days
</label>
<span id="msg"></span>
</div>
<button type="submit" class="btn btn-primary btn-lg btn-block" style="width: 350px; position: relative;top: 45px;"> Sign in </button>
</div>
</form>
</div>
</div>
</body>
</html>
边栏推荐
- notification是显示在手机状态栏的通知
- ViewSwitcher的功能和用法
- [4500 word summary] a complete set of skills that a software testing engineer needs to master
- Enum + Validation 的个人最佳实践 demo 分享
- <代码随想录二刷>链表
- [tpm2.0 principle and Application guide] Chapter 1-3
- 【OKR目标管理】案例分析
- Show progress bar above window
- 【可信计算】第十一次课:TPM密码资源管理(三) NV索引与PCR
- TabHOST 选项卡的功能和用法
猜你喜欢

Yarn capacity scheduler (ultra detailed interpretation)
![Interviewer: why is the page too laggy and how to solve it? [test interview question sharing]](/img/0d/5d27c71a80e89b6bdea30672423004.png)
Interviewer: why is the page too laggy and how to solve it? [test interview question sharing]

第3章业务功能开发(用户登录)

USB通信协议深入理解

Deep learning machine learning various data sets summary address

Taffydb open source JS database

99%的人都不知道|私有化部署还永久免费的即时通讯软件!

2021年全国平均工资出炉,你达标了吗?

【4500字归纳总结】一名软件测试工程师需要掌握的技能大全

Functions and usage of tabhost tab
随机推荐
toast会在程序界面上显示一个简单的提示信息
使用OneDNS完美解决办公网络优化问题
测试3个月,成功入职 “字节”,我的面试心得总结
运行yolo v5-5.0版本报错找不到SPPF错误,进行解决
基于RGB图像阈值分割并利用滑动调节阈值
阿富汗临时政府安全部队对极端组织“伊斯兰国”一处藏匿点展开军事行动
Show progress bar above window
企业即时通讯软件是什么?它有哪些优势呢?
viewflipper的功能和用法
【OKR目标管理】案例分析
【可信计算】第十次课:TPM密码资源管理(二)
USB通信协议深入理解
深入浅出图解CNN-卷积神经网络
面试官:页面很卡的原因分析及解决方案?【测试面试题分享】
在窗口上面显示进度条
zdog. JS rocket turn animation JS special effects
简单的loading动画
swiper左右切换滑块插件
开发一个小程序商城需要多少钱?
【深度学习】3分钟入门