Java-based design and implementation of springboot+vue+elementUI highway toll management system

This system is a platform designed by using the Spring Boot framework in combination with the actual situation of the user. It uses VUE technology to display all the interfaces available to users and administrators, and uses Java language technology to program the user. And the business logic of various operations performed by the administrator, using the MySQL database to access the data of the system, and logging in to the system as an administrator can more easily and simply complete all the data information in the system (basic information related to the culprit, toll station information , lane information, traffic flow information, etc.) control work. Using the B/S mode, users are easy to use and can give users a better experience.

At this stage, the government will manage expressway tolls. Users can understand the state of expressway tolls by entering relevant systems, which simplifies the management process of expressway tolls, thereby improving the efficiency of government high-speed toll management and achieving better management purposes.

This design uses JSP as the development language. The background uses the MySQL database design. The system has two login modes: administrator login. Administrators can add, modify, and delete system information through the system. At the same time, they have the functions of adding, modifying, deleting, and querying toll booths and toll collectors, as well as managing toll standard information, toll records, and data backup. The toll collector logs in. The toll collector uses the system to compile personal information and manage toll records. In addition to realizing the above functions, the system also has the characteristics of simple operation, stability, safety and fresh user interface.

This system realizes the following functions:


(1) Toll station management: administrators can add, delete, modify, and query toll station information.

(2) User information management: administrators can add, delete, modify, and query user information.

(3) Bulletin management: Administrators can add and modify bulletin information.

(4) Toll management: administrators can add, modify, view, delete toll types, and customize different expressway toll standards.

(5) Charge record management: administrators can add, modify, view, delete and other operations on charge record information.

(6) Vehicle type management: administrators can add, modify, view, delete and other operations on vehicle type information.

(7) Illegal record management: administrators can add, view, delete and other operations on illegal record information.

(8) Authority management: The administrator has all the authority to manage expressway tolls.

(9) Role management: Administrators can add, view, and delete administrator information.

package com.controller;


import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.entity.Allusers;
//import com.chengxusheji.po.News;
import com.server.AllusersServer;
import com.util.PageBean;
import net.sf.json.JSONObject;

public class AllusersController {
	private AllusersServer allusersService;

   public String showAllusers(int id,ModelMap map,HttpSession session){
	 /*  Map<String,Object> bmap=new HashMap<String,Object>();
	   bmap.put("uid", id);*/
	  // map.put("blist", allusersService.getAll(bmap));
	   map.put("allusers", allusersService.getById(id));
	   return "read";
	public String addAllusers(HttpServletRequest request,Allusers allusers,HttpSession session){
		Timestamp time=new Timestamp(System.currentTimeMillis());
		//Users u=(Users)session.getAttribute("user");
			return "";
		    allusers.setAddtime(time.toString().substring(0, 19));
			return "";
//	processing edit
	public String doUpdateAllusers(int id,ModelMap map,Allusers allusers){
		map.put("allusers", allusers);
		return "allusers_updt";
	public String updateAllusers(int id,ModelMap map,Allusers allusers){
		return "";
//	all lists
//	@RequestMapping("")
//	public String allusersList(ModelMap map,HttpSession session){
//		map.put("list", allusersService.getAll(null));
//		map.put("clist", allusersService.getAll(null));
//		return "allusers";
//	}
//	Paging query
	public String goodList(@RequestParam(value="page",required=false)String page,
			ModelMap map,HttpSession session,Allusers allusers, String username, String pwd, String cx){
			return "login";
		PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
		Map<String, Object> pmap=new HashMap<String,Object>();
		pmap.put("pageno", pageBean.getStart());
		pmap.put("pageSize", 15);
		Map<String, Object> bmap=new HashMap<String, Object>();
		Map<String,Object> cmap=new HashMap<String,Object>();
		/*pmap.put("uid",  ((Users)session.getAttribute("user")).getId());
		bmap.put("uid", ((Users)session.getAttribute("user")).getId());*/
		if(username==null||username.equals("")){pmap.put("username", null);cmap.put("username", null);}else{pmap.put("username", username);cmap.put("username", username);}
		if(pwd==null||pwd.equals("")){pmap.put("pwd", null);cmap.put("pwd", null);}else{pmap.put("pwd", pwd);cmap.put("pwd", pwd);}
		if(cx==null||cx.equals("")){pmap.put("cx", null);cmap.put("cx", null);}else{pmap.put("cx", cx);cmap.put("cx", cx);}
		int total=allusersService.getCount(bmap);
		List<Allusers> list=allusersService.getByPage(pmap);
		map.put("page", pageBean);
		map.put("list", list);
		session.setAttribute("p", 1);
		return "allusers_list";
//   Pagination fuzzy query
	public String vagueAllusersList(@RequestParam(value="page",required=false)String page,
			ModelMap map,HttpSession session){
		PageBean pageBean=new PageBean(Integer.parseInt(page),PageBean.PAGESIZE);
		Map<String, Object> pmap=new HashMap<String,Object>();
		pmap.put("pageno", pageBean.getStart());
		pmap.put("pageSize", pageBean.getPageSize());
		Map<String, Object> bmap=new HashMap<String, Object>();
		/*pmap.put("uid",  ((Users)session.getAttribute("user")).getId());
		bmap.put("uid",  ((Users)session.getAttribute("user")).getId());*/
		int total=allusersService.getCount(bmap);
		List<Allusers> list=allusersService.getByPage(pmap);
		map.put("page", pageBean);
		map.put("list", list);
		session.setAttribute("p", 2);
		return "queryallusers";
	public String deleteAllusers(int id){
		return "";
	public void quchongAllusers(Allusers allusers,HttpServletResponse response){
		   Map<String,Object> map=new HashMap<String,Object>();
		   map.put("username", allusers.getUsername());
		   JSONObject obj=new JSONObject();
				 obj.put("info", "ng");
				   obj.put("info", "username Can use!");
		   PrintWriter out=null;
		   try {
		} catch (IOException e) {
	public String checkAllusersLogin(Allusers allusers, HttpSession session) {
		Map<String,Object> u=new HashMap<String,Object>();
		System.out.println("name===" + allusers.getUsername());
		//u.put("utype", "user");
		allusers = allusersService.allusersLogin(u);
		if (allusers != null) {
			session.setAttribute("username", allusers);
			System.out.println("username=" + allusers);
			return "";
		} else {
			session.setAttribute("suc", "Login failed! wrong user name or password!");
			return "login";


Table of contents
1 Introduction 1
1.1 Subject background 1
1.2 Research Status 1
1.3 Preliminary design method and implementation plan 2
1.4 Research content of this paper 2
2 System development environment 4
2.1 Introduction to tools 4
2.2 Environment configuration 4
2.3 Introduction to B/S structure 4
2.4 MySQL database 5
2.5 Framework Introduction 5
3 System Analysis 6
3.1 System Feasibility Analysis 6
3.1.1 Economic feasibility 6
3.1.2 Technical feasibility 6
3.1.3 Operation feasibility 6
3.2 System status analysis 6
3.3 Functional requirements analysis 7
3.4 System design rules and operating environment 8
3.5 System flow analysis 8
3.5.1 Operation process 8
3.5.2 Add information process 9
3.5.3 Delete information flow 10
4 System Design 11
4.1 Main functions of system design 11
4.2 Database Design 11
4.2.1 Database design specification 11
4.2.2 E/R Diagram 11
4.2.3 Data Sheet 12
5 System Implementation 25
5.1 System function modules 25
5.2 Background module 27
5.2.1 Administrator function module 27
5.2.2 User Function Module 30
6 System Testing 33
6.1 Functional testing 33
6.2 Usability testing 33
6.3 Performance testing 34
6.4 Analysis of test results 34
7 Conclusion 35
References 36
Thanks 37

Tags: Java Spring Boot Vue.js

Posted by partypete on Mon, 12 Dec 2022 22:22:41 +0300