Java graduation project is based on spingboot+vue subject construction management information system

Collect and follow to avoid getting lost, end of source code article

Article directory

  • Preface
  • 1. Project introduction
  • 2. Development environment
  • 3. Function introduction
    • Administrator use case
    • User use cases
  • 4. Core code
  • 5. Effect drawing
  • 6. Article Table of Contents

Foreword

With the rapid development of science and technology, all walks of life are actively integrating international advanced technologies and improving their competitiveness through technical means. With the continuous advancement of computer network technology, a new approach has been provided for the development of universities. A fundamental change was made to the previous way of doing business. Not only does it reduce the difficulty of managing services, it also increases their flexibility. Among them, the management of professional engineering projects is an important component. Home page, personal center, administrator management; management of basic data, announcements and scientific researchers; paper management, project management, project management, and scientific researchers. Home page, personal center, announcement management; paper management, project management, project management and project results management. In this system, the administrator is mainly responsible for storing and managing various types of information safely and effectively, and can manage, update and maintain the system, and has certain operating rights for the college. This personalized development platform focuses on interactive cooperation and management complementarity, can maximize the creativity and initiative of managers, and is the key to establishing MIS in university majors.

1. Project introduction

In this era of highly developed information, the transformation of information management has become a broader and more comprehensive trend. With the continuous progress of the information age, the discipline construction MIS is also constantly developing to ensure the sustainable development of China’s economy. At the same time, with the rapid development of the information society, the amount of data faced by various management systems is also increasing. How can managers better query, store, manage and share useful data in the vast ocean of data? Information has very important practical significance for our study, work and life. In this context, the informatization of professional construction management in colleges and universities has become an emerging topic and an important part of the informatization of professional construction management in colleges and universities.
Today, with the rapid development of science and technology, various industries are constantly keeping up with the trend of the times and using the power of science and technology to enhance their competitiveness. Of course, the same is true for the subject construction management information system. With the increasing maturity of Internet technology, the emergence and development of the subject construction management information system have fundamentally changed the previous traditional management model; it not only reduces the difficulty of service management, but also improves the efficiency of service management. Management flexibility. The main modules include administrator; home page, personal center, administrator management, basic data management, announcement management, scientific researcher management, paper management, project management, project results management, scientific researchers; home page, personal center, announcement management, paper management , project management, project results management. In the system, the administrator’s role is to store and manage various information safely and efficiently, and can also manage, update and maintain the system, and has certain operating authority over the school. This personalized platform particularly emphasizes the mutual cooperation between interactive collaboration and management, fully mobilizing the creativity and enthusiasm of managers, and is very beneficial to the discipline construction management information system.

2. Development environment

Development language: Java
Framework: springboot
JDK version: JDK1.8
Server: tomcat7
Database: mysql
Database tool: Navicat11
Development software: eclipse/myeclipse/idea
Maven package: Maven
—————-

3. Function introduction

Administrator use case

After logging in, the administrator can perform homepage, personal center, administrator management, basic data management, announcement management, scientific researcher management, paper management, project management, and project results management. The administrator’s use case is shown in Figure 3-1.

Figure 3-1 Administrator use case diagram

User use cases

After registering and logging in, scientific researchers can conduct homepage, personal center, announcement management, paper management, project management, project results management, etc. The user use example is shown in Figure 3-2.

Figure 3-2 Researcher use case diagram

The module includes the main interface, home page, personal center, administrator management, basic data management, announcement management, scientific researcher management, paper management, project management, project results management, etc. to perform corresponding operations.

4. Core code

Part of the code:

package com.example.controller;

import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.SecureUtil;
import com.example.common.Result;
import com.example.common.ResultCode;
import com.example.entity.Caiwu;
import com.example.exception.CustomException;
import com.example.service.CaiwuService;
import com.example.utils.MapWrapperUtils;
import com.example.utils.jwt.JwtUtil;
import com.example.vo.CaiwuVo;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping(value = "/caiwu")
public class CaiwuController {<!-- -->

    @Resource
    private CaiwuService caiwuService;

    @PostMapping
    public Result<Caiwu> add(@RequestBody CaiwuVo caiwu) {<!-- -->
        caiwuService.add(caiwu);
           return Result.success(caiwu);
    }
\t
\t

    @PostMapping("/deleteList")
    public Result<Caiwu> deleteList(@RequestBody CaiwuVo caiwu) {<!-- -->
        caiwuService.deleteList(caiwu.getList());
        return Result.success();
    }

    @DeleteMapping("/{id}")
    public Result delete(@PathVariable Long id) {<!-- -->
        caiwuService.delete(id);
        return Result.success();
    }

    @PutMapping
    public Result update(@RequestBody CaiwuVo caiwu) {<!-- -->
        caiwuService.update(caiwu);
        return Result.success();
    }

    @GetMapping("/{id}")
    public Result<Caiwu> detail(@PathVariable Integer id) {<!-- -->
        Caiwu caiwu = caiwuService.findById(id);
        return Result.success(caiwu);
    }

    @GetMapping
    public Result<List<Caiwu>> all() {<!-- -->
        return Result.success(caiwuService.list());
    }

    @PostMapping("/page")
    public Result<CaiwuVo> page(@RequestBody CaiwuVo caiwuVo) {<!-- -->
        return Result.success(caiwuService.findPage(caiwuVo));
    }
@PostMapping("/login")
    public Result login(@RequestBody Caiwu caiwu, HttpServletRequest request) {<!-- -->
        if (StrUtil.isBlank(caiwu.getZhanghao()) || StrUtil.isBlank(caiwu.getMima())) {<!-- -->
            throw new CustomException(ResultCode.PARAM_LOST_ERROR);
        }
        Caiwu login = caiwuService.login(caiwu);
// if(!login.getStatus()){<!-- -->
// return Result.error("1001","Status restriction, unable to log in to the system");
// }
        if(login != null) {<!-- -->
            HashMap hashMap = new HashMap();
            hashMap.put("user", login);
            Map<String, Object> map = MapWrapperUtils.builder(MapWrapperUtils.KEY_USER_ID,caiwu.getId());
            String token = JwtUtil.creatToken(map);
            hashMap.put("token", token);
            return Result.success(hashMap);
        }else {<!-- -->
            return Result.error();
        }
    }
    @PutMapping("/updatePassword")
    public Result updatePassword(@RequestBody Caiwu info, HttpServletRequest request) {<!-- -->
        Caiwu caiwu = caiwuService.findById(info.getId());
        String oldPassword = SecureUtil.md5(info.getMima());
        if (!oldPassword.equals(caiwu.getMima())) {<!-- -->
            return Result.error(ResultCode.PARAM_PASSWORD_ERROR.code, ResultCode.PARAM_PASSWORD_ERROR.msg);
        }
        info.setMima(SecureUtil.md5(info.getNewPassword()));
        Caiwu caiwu1 = new Caiwu();
        BeanUtils.copyProperties(info, caiwu1);
        caiwuService.update(caiwu1);
        return Result.success();
    }
}

5. Renderings



6. Article directory

Table of contents
Chapter 1 Introduction 1
1.1 Background and significance 1
1.2 Overview of research at home and abroad 2
1.3 Contents of the study 2
Chapter 2 Research on Key Technologies 3
2.1 Related technologies 3
2.2 Java technology 3
2.3 ECLIPSE development environment 4
2.4 Introduction to Tomcat 4
2.5 Spring Boot Framework 5
Chapter 3 System Analysis 5
3.1 System design goals 6
3.2 System feasibility analysis 6
3.3 System function analysis and description 7
3.4 System UML use case analysis 8
3.4.1 Administrator use case 9
3.4.2 User use cases 9
3.5 System process analysis 10
3.5.1 Add information process 11
3.5.2 Operation process 12
3.5.3 Deletion of information process 13
Chapter 4 System Design 14
4.1 System Architecture 15
4.2 Database design principles 16
4.3 Data sheet 17
Chapter 5 System Implementation 18
5.1 User function module 18
5.2 Administrator function module 19
5.3 User function module 19
5.4 Front page function module 19
Chapter 6 System Test 20
6.1 Test definition and purpose 21
6.2 Performance Test 22
6.3 Test module 23
6.4 Test results 24
Summary 25
Acknowledgments 27