https://jvav.my.to:10659/HospitalTest/
A school assignment(experiment) for JSP, a simple hospital queuing Web system made by pure JSP, HTML, CSS, Javascript without any framework.
Web, software engineering, database courses, and hospitals line up to call the number system.
Requirements: The system is applied to all outpatient departments of the hospital, which can effectively solve problems such as disorderly queues when patients are visiting/examining/taking medicines, unbalanced doctors' workload, and noisy medical environment. Main functions: First, receive the corresponding patient documents (registration form, medical and technical examination form or medication order) from HIS, and generate a queue queue based on the patient's sign-in status, doctor's scheduling information and patient priority information, so that doctors can call numbers, select calls, re-call, pass numbers and other queue business operations. In addition, the system also needs to provide query, statistics and analysis functions for corresponding information.
In fact, only part of it has been implemented.
No framework is used, front-end and back-end are not separated, front-end pure native HTML+CSS+Javascript, back-end JSP, Servlets, classic MVC mode, database default H2, native JDBC connection, no connection pool is used, some requests use Ajax. Therefore, this project is only applicable to the mandatory reference when J2EE ancient development
The web achievements are very simple. Even the interface is pure HTML hand-pushed. After half a month of hand-pushing, it is still not perfect. I will use it as a commemoration here. I may improve it if I have time.
The database is configured in /src/main/java/db/ConnBean.java (H2) and MsSQLConnBean.java (SQL Server). The default database is H2. You need to configure the H2 database in D:h2db2 directory, import and initialize SQL (Database.sql and Insert.sql), or you can change the path by yourself in ConnBean.java private String database="D:/h2db2/hospital";
Change the encoding from Eclipse default GBK to UTF-8
Admin keys are generated randomly every time the server is started. Visit RandomAdminKey.jsp to get
The deployment must use Tomcat 10 or above (the package name has been changed to jakarta, unless you manually change it back to javax). The default project structure is also Eclipse. If an error is reported after importing, go to Java Build Path to add Unbound again.
If you want to open it with IDEA, you need to import Module yourself in Project Structure-Module. It is recommended to change the Dependencies storage format to .iml, then delete the useless packages, modify the JDK path, add Tomcat 10 Library, then add all the packages under WEB-INF/lib, add Facets-select Web, remove the Descriptor, modify the Web Resource Directory to the webapp directory, and then Create Artifact in the lower right corner. Fix will be OK a few times
Since changing the IDEA project structure is a bit troublesome, a newly added IDEA project configuration file that can be run directly has been added, but the operation configuration of the Tomcat server may need to be modified by itself in Run-Edit Configurations