College psychological counseling appointment system based on SpringBoot [with source code]

This set of whoring for nothing, need source code+

xmp0297

Nursing home management system based on SpringBoot

  • Development language: Java
  • database: mysql
  • Technology:SpringBoot+MyBatis+Vue+ElementUi
  • Tools: IDEA/Ecilpse+mysql+Navicat/sqlsong

Roles: Administrators and Users

  1. Administrator: Administrators can view the home page, personal center, system announcement management, user management, psychological counselor management, spiritual column management, stress test management, test data management, consultant appointment management, and small notes by logging into the soul healing communication platform Administration, System Administration.
  2. User: Users can log in to the Soul Healing Exchange Platform to view the home page, personal center, test data management, consultant appointment management, and note management, etc.
  3. Psychological counselors: Psychological counselors can log in to the spiritual healing exchange platform to view the home page, personal center, counselor appointment management, system management and other content.

insert image description here
insert image description here

insert image description here
insert image description here
insert image description here

insert image description here
insert image description here

1 Introduction

1.1 Research Background

With the continuous popularization and development of the Internet, the spiritual healing communication platform has developed rapidly relying on the support of network technology. First of all, we must start from the actual needs of users and develop targeted homepages, system announcements, and psychological counseling by understanding the needs of users. Teacher, spiritual column, stress test, small note, personal center, background management, chat function, adjust the system by taking advantage of the convenience and speed brought by the current network to users, and design the system to make users use it more conveniently. The main purpose of this system is to bring quickness, efficiency and safety to users, and users can operate it at home [1]. At the same time, with the development of e-commerce, the online spiritual healing communication platform has attracted the attention of the majority of users.

Since the development of the Internet, it has solved many problems that we cannot solve, making our work more convenient and improving our work efficiency. At present, all walks of life are using network information management programs, and different users are also exposed to information management, especially in major e-commerce industries. Through the analysis and summary of the development of the current network environment, the development of the spiritual healing communication platform can change the previous communication methods and the state of the traditional offline spiritual healing communication platform. Due to the increasing number of users, the use of the traditional offline spiritual healing communication platform model It is far from being able to meet the needs of users, and more and more spiritual consulting studios are also opening online spiritual healing communication platforms, so developing a spiritual healing communication platform can solve the problem that spiritual consulting studios are not conducive to offline spiritual healing At the same time, the spiritual consultation studio can use the network to manage the spiritual consultation, and the designed website ensures the integrity and safety of information, so as to improve work efficiency and ensure the safe and normal operation of the system [2].

1.2 Research Status

The development of their information technology in foreign countries is many times that of our country. Since the world's first computer was born in the United States in 1946, foreign information technology has been developing rapidly, and some computer application software has also appeared one after another. Software technology It has also been continuously improved and updated [3]. The software industry has long been everywhere.

In China, the development of information technology in our country started relatively late, and we slowly and continuously optimized and reformed in the later period, so that our information technology rose to a new stage. Nowadays, the technology of software development can basically reach the level of independent development system application after a lot of research and life practice, and various industries in life also replace software operation with traditional recording mode. The software industry is the hottest industry now [4].

Socialism has entered a new era, and its economic strength is getting stronger and stronger. We are also becoming more and more busy, and the requirements for life are becoming stricter, and the demand for fast and convenient services is gradually increasing. Therefore, the development of the online spiritual healing communication platform has brought enough convenience to users. Through the system to meet the needs of life, therefore, due to the increase of information, the information processing system also increases, through the network to meet the needs of modern users [5]. This development and design is mainly to realize the soul healing communication platform, combined with java technology and MYSQL database design, to make up for the shortcomings of the current online soul healing communication platform, to develop a convenient and practical soul healing communication platform, and the design The program has the characteristics of clean interface and powerful functions. Overall, the design of the soul healing communication platform solves the scattered information. The system can be implemented and put into the real environment. This will not only solve the above-mentioned problems, but also allow information management More standard.

1.3 Research content

The development and design of the spiritual healing communication platform is based on the actual situation of the user, and the system requirements are analyzed in detail, and then the overall design of the system is carried out. Finally, the system design is more complete through testing, and all functions in the system can be realized. , before starting to write the thesis, I personally went to the library to borrow Spring Boot books, MYSQL database books and other programming books, and then for the developed soul healing communication platform, I went to the Internet to find many systems made by others, and referred to their design results to make a comparison Carry out a more detailed system design for your own system, list all the functional results in the system one by one, then conduct a demand analysis, and finally code all the functional modules, and finally complete the overall test of the system to achieve the normal operation of the system[ 6].

The thesis written this time contains 6 parts, the specific contents are as follows:

The first part is introduction: the article mainly expounds the necessity of developing this system comprehensively from the subject background and research status.

The second part related technologies: various technologies used in system development are roughly introduced.

The third part of the system analysis: the feasibility analysis of the system and the detailed analysis of all functional requirements to check whether the system has the possibility of development.

The fourth part, system design: function module design and database design, both of which have special tables and pictures.

The fifth part of the system implementation: display the interface of the main functional modules of the system.

The sixth part is system test: test whether each function of the system can run normally and meet the needs of users.

2 Key technologies of the system

2.1 Spring Boot framework

Spring Boot is a new framework from the Pivotal team aimed at simplifying the initial setup and development of new Spring applications. The framework uses a specific configuration approach, eliminating the need for developers to define boilerplate configurations. In this way, Spring Boot aims to be a leader in the burgeoning field of rapid application development.
Spring Boot features:
1. Create a separate Spring application;
2. Embedded Tomcat, no need to deploy WAR files;
3. Simplify Maven configuration;
4. Automatically configure Spring;
5. Provide production-ready functions, such as indicators, health checks and External configuration;
6. Absolutely no code generation and XML configuration requirements;
installation steps:
at its most basic, Spring Boot is a collection of libraries that can be used by any project's build system. For simplicity, the framework also provides a command line interface that can be used to run and test Boot applications. Published versions of the framework, including the integrated CLI (command line interface), can be downloaded and installed manually from the Spring repository. An easier way is to use the Groovy enVironment Manager (GVM), which handles Boot version installation and management. Boot and its CLI can be installed from the GVM command line GVM install springboot. The Homebrew package manager can be used when installing Boot on OS X. To complete the installation, first switch to the pivotal repository using brew tap pivotal/tap and then execute the brew install springboot command.

2.2 JAVA technology

The JAVA language is currently the most widely used language development program in the software market. It can be used on a variety of platforms, has strong compatibility, adapts to most operating systems on the market, does not appear garbled characters, has better scalability and maintainability, and has the ability to analyze and solve problems. Process-oriented programming allows us to write more robust code.

Compared with other languages, JAVA is relatively simple, more convenient to compile, and has high security and reliability. According to incomplete statistics, there are more than 20 million people in the world using it. JAVA can be used both inlaid and independently. JAVA can be roughly divided into two parts, one part is the compilation that JAVA is responsible for, and the other is the operation that JAVA is responsible for. JAVA is very similar to C++ language, but JAVA is compiled in an object-oriented way when programming, so that the compiled software can be used on a stand-alone computer or on the Internet, and it is more convenient to check for errors. The distributed and architecture-neutral characteristics of JAVA also make its storage faster and programming simpler. Object-oriented includes four characteristics, one is encapsulation, which means that certain functions and attributes can be realized when defining a class. The second is abstraction, which is a kind of class. It can encapsulate a class with common attributes in an abstraction, which is convenient for simple compilation. The third is inheritance, as the name implies, it has the characteristics of the former. Another feature is polymorphism, which can be used together, showing its good scalability [8].

2.3 MYSQL database

The development of the website must be equipped with a corresponding database. The database has a certain organizational structure and can store and manage data information. In the past, the function of the database was only data storage and management operations, but with the changes and development of the times, the current database has evolved into data processing. In this way, the database has undergone many reforms from the initial simple storage of data table information to the current large database that can store thousands of data.

The database used in the spiritual healing communication platform developed this time is MYSQL database, which runs fast and has high security performance, and has no restrictions on the platform used, so it is widely used in the development of the system. MySQL is an open-source and multi-threaded relational management database system. MySQL is an open-source database with cross-platform features. Although the functions may not be powerful, many people understand the basic application of this database. In the database, a total of 10 Several tables, each of which is corresponding, each has its own connection, the database is of great significance, if there is no link to the database, there is no way to run the program, which obviously shows the importance of the database and the program, is closely linked [9].

2.4 B/S structure

The B/S (browser/server) structure is the current mainstream network structure model. It can concentrate the core functions of the system on the server, and can help system developers simplify operations and facilitate maintenance and use. Users only need to install 360 browser, Google browser, QQ browser and other popular browsers on the client side, and install databases such as sqlserver and mysql database in the computer [10]. The installed browser interacts with the server-side database for information and data. Many things that special software can do can also be realized by using the B/S structure mode, which can combine technologies such as Web browser technology, ActiveX technology and various scripting languages. Help program developers save a lot of development costs. At present, the B/S structure has become the mainstream structure of program development. Its best feature is that it has no location restrictions and does not need to install special software. Laptops or computers can access the system with Internet access. The system uses B/S for development, which will save trouble in the later system maintenance. It does not need to operate on the server for all problems. Simple client-side processing can solve some problems. The developed program will also enhance the interaction with users. The browser can be refreshed in real time to update the local data information of the program.

6 System Test

After a system is designed, it will enter the testing stage. The goal of testing is to check whether the designed website can run normally and without errors, and to find out the problems of the website as much as possible, so as to make the website go wrong as little as possible after it is put into use[12] .

6.1 Test Definitions

System testing is mainly to judge whether the system can run normally and whether the functional modules can be operated. Whether there is an error in the program code. Testing procedures is a major concern during development. No matter how well the system is completed, an error message that has never been found will be found when the program is tested again.

Testing is not only the beginning of system development, but should run through the entire life cycle of the entire system. The method of evaluating system quality is not limited to system coding and process, but should be closely related to software design work and historical requirements analysis. System errors, not necessarily code errors, may be problems in the design summary and design details of the stage, and problems may also appear in the requirements analysis stage [13]. From the actual situation, the original problem is likely to be a small error, and according to the principle of the button, the dislocation of the button after the button will be all dislocations. The same reasons for the system apply, errors will get worse with subsequent development work. Therefore, the system should be tested, and the problems existing in the system can be found at the beginning, so as to ensure the normal and stable operation of the system in the future. In the test system, developers should stand in the user's point of view to handle the test work, and now the main test method is black box test. The purpose of the test can be summarized as the following points: first, the user interface and user needs are consistent, and the setting interface and design style are unified; second, the innovative design interface specification design standard has unique aesthetic characteristics; finally, the human traditional interface In order to meet the aesthetic needs, one cannot blindly pursue a unique and reasonable planning layout that meets the aesthetic standards.

6.2 Test purpose

The purpose of the test is to control the stability and operability of the system. For software development and utilization, the ultimate purpose is the final test and trial, which is an indispensable and important link. For software developers, when arranging each individual function, there must be a separate test, and multiple functional software can be developed only after passing the test phase, which not only shortens the development time, but also can be used in a single Problems are found in the early tests, so as to avoid the integrated software, it is difficult to quickly solve or quickly locate the problem when finding the problem.

After the development and design of the soul healing communication platform is completed, it is necessary to conduct a system test. The main purpose of the test is to discover and find out the problems in the system, and solve them in time to ensure that the system can run normally and stably. When testing, you must be very serious and careful, and remember not to be careless, and you must not let a loophole go. Don’t worry when testing. You must follow the previously specified test steps step by step, and record the test results in detail. We choose automated testing when testing, which can save time and ensure the accuracy of testing. If manual testing is used, it will not be so convenient, because manual testing has many uncertain factors. There may be some problems during the test, and there will be no problems when testing with a machine, and the machine will not be tired and will continue to work second-class. When testing, you must be very focused, always pay attention to the test results, and modify it in time if you find an abnormality. Finally, the document after the test should be saved for future use in testing. There are many methods of system testing. For the testing of this spiritual healing communication platform, we used the most widely used black box testing method to test the system.

6.3 Test plan

The grasp of the test plan is the most important part of the test plan. All technical difficulties should be included in this test plan. And we need to ensure consistency with the target, so that we can test out some major bugs and some wrong loopholes. Only white-box or black-box testing can perfectly solve these problems [14].

Structural testing is another name for white box testing. It is to understand and analyze the structure and performance of the program, so that we can get the final desired result and observe whether every program can be obtained.

Performance testing is another name for black-box testing. The operation of the program itself is observed through the process of the program, mainly to see if the program can develop as we expected, and to see if our program can finally get what we want completely. The required functions and storage of the desired data, to the last look at the complete performance of our program can not meet the requirements.

(1) Module test

Unit testing is module testing. As the name suggests, it is to test whether the functions undertaken by each module can be realized. This test is to find out the deviation of some small programs in the actual design and operation of the code, and to correct these errors well. It shows that our module testing has been very successful.

(2) Integration test:

Integration testing is the testing of the system and some performance testing of other subsystems. It checks the packaging program information of the system. Find out what's wrong with it. His advantages mainly include the following points:

Software costs less.

Port errors can be detected in advance.

Wrong position in better status system.

The scheme carried out from the bottom to the top is aimed at the lower structure, while the middle structure adopts a compromise method.

(3) Acceptance test:

Finally came the concluding work. It is to show users whether our system functions have achieved the expected results. I used performance testing, that is, black box testing, to test the system.

The results are respectively:

There are certain differences in user needs.

Furthermore, the result is not much different from it.

In the end, the problems we found were all related to the needs of users.

1. Login test

Test point: login

The goal of the test: After entering the account password and verification code, the system will automatically verify whether it is correct.

The environment used: Windows10 and IE browser.

Enter information: username, password.

step:

(1) First, we call the browser and enter the login interface of the system.

(2) After entering the login part of the page, you can test the user name and password. The specific test input conditions are shown in Table 6.1.

Table 6.1 Login Test

Condition username input password input Desired result
(1) 15546219225 1244566 Prompt "The user name or password is wrong, or the account has not been reviewed"
(2) aaaah 123456 Prompt "The user name or password is incorrect, or the account has not been reviewed"
(3) 15546219225 hangguowei Landed successfully

2. Psychological counseling test:

Table 6.2 Table of test cases for spiritual counseling

use case number UC-TEST-003 test name spiritual counseling
prerequisite spiritual counseling
step Operation description data Desired result
1 Click the Spiritual Counseling View Details button none Jump to spiritual counseling details
2 Click the add button none Jump to add page
3 After selecting the add button none Jump to spiritual counseling page
Test instruction When the user is not logged in, go to step 3 and jump to the login page
Test Results success tester

6.4 System Analysis

The design requirements of this spiritual healing communication platform can basically be met. This system has complete software functions, a good user interface, can correctly handle error messages, and can accurately propose error types. However, some system deficiencies and defects also appeared during system testing, so I will make changes to its visual deficiencies in the days to come. Secondly, there are a lot of redundancy in the system code and database, all because of The application of programming technology is not proficient enough. In the future, I will strengthen my own learning and ability to reduce such redundancy.

After the analysis of the above test results, the spiritual healing communication platform is completely feasible in terms of technology, operation, and economy. After testing, the system is easy to operate and all functions can be realized. Therefore, The system can meet the needs of users and is worth promoting.

Overall, the software passes the tests.

7 Conclusion

This article studies the design and implementation of the spiritual healing communication platform. At the beginning of the article, it first briefly introduces the research background, research status and research content, and then through system analysis, it extends the main content of this system research.

Through the introduction of the Java language and the MYSQL database, the feasibility of the design and implementation of the soul healing communication platform is explained from both sides of the hardware and software. , I feel that the most important thing to learn a new technology is practice. Only by doing more can you master it as soon as possible. In the development of a system, experience is the most important. In order to attract more users, the interface of the system must be beautiful, distinctive, friendly, and functional.

Since I didn't know Java knowledge before this, I encountered many difficulties from the beginning, such as irregular page display at the beginning, problems with the database connection, and the transfer of parameters could not be realized, etc., but through my continuous review of relevant Through this system development, I have learned a lot of knowledge, and I also understand where I have deficiencies, especially how to learn Filter out the useful information needed from a large amount of information, and at the same time, I have a deeper understanding that although most of the knowledge in books is valuable and correct, in fact, everyone's programming ideas and data processing methods , Thoughts are all different, which requires us to find a solution to the problem through practice. In this graduation design activity, I have continuously improved myself and gained valuable experience, which I believe will be of great help to my future development.

Through the development of this spiritual healing exchange platform, I have learned more knowledge. At the same time, through the design of this system, I have also understood where I am deficient. I will learn more in the future to develop more useful and applicable applications. The system software, the design of this system has improved my programming level and laid a solid foundation for my future system development.

references

[1] Wang Yuying. Java-based MySQL database access technology [J]. Modern Computer: Professional Edition, 2018, 19(14):63-66

[2] Chen Maydene Fisher, Jon Ellis, Jonathan Bruce. JDBC API Tutorial and Reference, Third Edition . 11 June, 2018 [3] Jason Brittain Ian F.Darwin [US]. Tomcat Authoritative Guide. Beijing: China Electric Power Press , 2018.

[4] Shi Zhengxi. Practical Tutorial of MySQL Database. Beijing: Beijing Normal University Press 2019

[5] Zhang Haipan. Software Engineering Theory [M]. Beijing: Tsinghua University Press, 2017.

[6] Patrick O'Neil Elizabeth O'Neil[English] et al. Database-Principle, Programming and Performance (Second Edition Photocopy) [M]. Beijing: Higher Education Press, 2017.

[7] Wang Yuzhu. MySQL Introduction Classic. Beijing: Mechanical Industry Press 2017 [8] Deng Ziyun. Java Network Programming from Basics to Practice [M]. Beijing: Electronic Industry Press, 2019.

[9] Chen Shengguo. Java Information System Design and Development Example [M]. Beijing: Mechanical Industry Press, 2019.

[10] Todd Cook. Java from entry to mastery [W]. Beijing: Electronic Industry Press, 2019.

[11] Bruce Eckel. Thinking in java (English Edition). Beijing: Machinery Industry Press, 2019

[12] Hsiao I H, Sosnovsky S, Brusilovsky P. Guiding students to the right questions: adaptive navigation support in an e-learning system for Java programming[J]. Journal of Computer Assisted Learning, 2018, 26(4):270-283.

[13] Vegh A. MySQL Database Server[M]. Web Development with the Mac®. Wiley Publishing, Inc., 2019,179-194

[14] Rasoolzadegan A, Barforoush A A. Reliable yet flexible software through formal model transformation (rule definition)[J]. Knowledge & Information Systems, 2019, 40(1):79-126

thank you

This graduation project is successfully concluded. Through this graduation project, I have learned a lot of knowledge and improved my software development ability. In the process of system development and design, many problems have appeared, but through teachers and classmates Finally, all the problems were solved, so I would like to thank the teachers and classmates who helped me in this process, and thank the instructor for helping me choose the topic, explaining it in detail, and providing me with the necessary information for the design. Various equipment, and often ask me about my progress and results, and give me solutions when I have difficulties, and help me to complete it smoothly. Without his guidance, I would not be where I am today.

First of all, I would like to thank my advisor, who took time out of his busy teaching tasks to help me correct the problems in my design, and patiently corrected my thesis. It was his regular inspection and guidance that made me Our graduation projects are completed with high quality. He provided a lot of valuable advice on program design, frame design, code writing, and thesis frame design throughout the process of my project development and design, and recommended many useful materials and documents for me. I have benefited a lot from my guidance and suggestions. With the guidance and guidance of my advisor, my thesis can be successfully completed. The teacher's serious and responsible work attitude and rigorous way of doing research have greatly benefited us graduates who are about to enter the society.

Then I would like to thank my classmates, thank you for your help to my graduation project, and thank you for your company in college life, which made my college life very happy.

In addition, I would also like to thank my parents for their support all the time, so that I can successfully complete my studies. Without you, I would not be where I am today. Thank you for your selfless dedication. I will definitely repay you in the future.

Finally, I would like to thank all the teachers who participated in my dissertation defense, thank you for listening, and thank you for your hard work.

the code

package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 聊天
 * 数据库通用操作实体类(普通增删改查)
 * @author 
 * @email 
 * @date 2021-01-19 21:46:13
 */
@TableName("chat")
public class ChatEntity<T> implements Serializable {
    
    
	private static final long serialVersionUID = 1L;


	public ChatEntity() {
    
    
		
	}
	
	public ChatEntity(T t) {
    
    
		try {
    
    
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
    
    
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 用户id
	 */
					
	private Long userid;
	
	/**
	 * 管理员id
	 */
					
	private Long adminid;
	
	/**
	 * 提问
	 */
					
	private String ask;
	
	/**
	 * 回复
	 */
					
	private String reply;
	
	/**
	 * 是否回复
	 */
					
	private Integer isreply;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
    
    
		return addtime;
	}
	public void setAddtime(Date addtime) {
    
    
		this.addtime = addtime;
	}

	public Long getId() {
    
    
		return id;
	}

	public void setId(Long id) {
    
    
		this.id = id;
	}
	/**
	 * 设置:用户id
	 */
	public void setUserid(Long userid) {
    
    
		this.userid = userid;
	}
	/**
	 * 获取:用户id
	 */
	public Long getUserid() {
    
    
		return userid;
	}
	/**
	 * 设置:管理员id
	 */
	public void setAdminid(Long adminid) {
    
    
		this.adminid = adminid;
	}
	/**
	 * 获取:管理员id
	 */
	public Long getAdminid() {
    
    
		return adminid;
	}
	/**
	 * 设置:提问
	 */
	public void setAsk(String ask) {
    
    
		this.ask = ask;
	}
	/**
	 * 获取:提问
	 */
	public String getAsk() {
    
    
		return ask;
	}
	/**
	 * 设置:回复
	 */
	public void setReply(String reply) {
    
    
		this.reply = reply;
	}
	/**
	 * 获取:回复
	 */
	public String getReply() {
    
    
		return reply;
	}
	/**
	 * 设置:是否回复
	 */
	public void setIsreply(Integer isreply) {
    
    
		this.isreply = isreply;
	}
	/**
	 * 获取:是否回复
	 */
	public Integer getIsreply() {
    
    
		return isreply;
	}

}


package com.entity;

/**
 * 自定义异常
 */
public class EIException extends RuntimeException {
    
    
	private static final long serialVersionUID = 1L;
	
    private String msg;
    private int code = 500;
    
    public EIException(String msg) {
    
    
		super(msg);
		this.msg = msg;
	}
	
	public EIException(String msg, Throwable e) {
    
    
		super(msg, e);
		this.msg = msg;
	}
	
	public EIException(String msg, int code) {
    
    
		super(msg);
		this.msg = msg;
		this.code = code;
	}
	
	public EIException(String msg, int code, Throwable e) {
    
    
		super(msg, e);
		this.msg = msg;
		this.code = code;
	}

	public String getMsg() {
    
    
		return msg;
	}

	public void setMsg(String msg) {
    
    
		this.msg = msg;
	}

	public int getCode() {
    
    
		return code;
	}

	public void setCode(int code) {
    
    
		this.code = code;
	}
	
	
}

Guess you like

Origin blog.csdn.net/2301_78335941/article/details/131265864