当前位置:网站首页>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>
边栏推荐
猜你喜欢

做软件测试 掌握哪些技术才能算作 “ 测试高手 ”?

深入浅出【机器学习之线性回归】

Understanding of 12 methods of enterprise management

Taffydb open source JS database

深入浅出图解CNN-卷积神经网络

Slider plug-in for swiper left and right switching

Please insert the disk into "U disk (H)" & unable to access the disk structure is damaged and cannot be read

JS pull down the curtain JS special effect display layer

什么是敏捷测试

Import requirements in batches during Yolo training Txt
随机推荐
本周小贴士#134:make_unique与私有构造函数
In depth understanding of USB communication protocol
ViewSwitcher的功能和用法
Numberpick的功能和用法
VSCode关于C语言的3个配置文件
Ansible learning summary (9) -- ansible loop, condition judgment, trigger, processing failure and other task control use summary
Taffydb open source JS database
基于PyTorch利用CNN对自己的数据集进行分类
Interviewer: why is the page too laggy and how to solve it? [test interview question sharing]
【网络攻防原理与技术】第3章:网络侦察技术
基于百度飞浆平台(EasyDL)设计的人脸识别考勤系统
Click on the top of today's headline app to navigate in the middle
【OKR目标管理】价值分析
第3章业务功能开发(用户访问项目)
Dragging the custom style of Baidu map to the right makes the global map longitude 0 unable to be displayed normally
Target detection 1 -- actual operation of Yolo data annotation and script for converting XML to TXT file
《世界粮食安全和营养状况》报告发布:2021年全球饥饿人口增至8.28亿
zdog.js火箭转向动画js特效
2021-06-28
zdog. JS rocket turn animation JS special effects