Medical Appointment Management System – Backend Service Implementation and Project Overview
This article presents a complete backend implementation of a medical appointment management system, describing user roles, environment setup, technology stack, and providing full Java service and controller code for doctor, admin, and login functionalities.
The project implements a hospital appointment platform with three user types: patients (who can register, select doctors, book dates and slots), doctors (who can receive appointments), and administrators (who manage users and doctors).
Environment configuration : JDK 1.8, Tomcat 8.5, MySQL, and an IDE such as IntelliJ IDEA or Eclipse. The technology stack includes JSP, Spring, Spring Boot, MyBatis, HTML, CSS, JavaScript, jQuery, Ajax, Layui, and Maven.
Doctor service layer provides CRUD operations and custom queries for the @Service public class DoctorServiceImp implements DoctorService { ... } implementation, including methods like countByExample , deleteByPrimaryKey , insertSelective , selectByExample , selectByPrimaryKey , updateByPrimaryKeySelective , selectDoctor , selectDoctorList , and selectTime . The code uses @Autowired to inject DoctorMapper and leverages MyBatis DoctorExample for dynamic query building.
Administrator service layer mirrors the doctor service with @Service public class AdminServiceImp implements AdminService { ... } , offering methods such as insertSelective , selectByExample , selectByPrimaryKey , updateByPrimaryKeySelective , and selectAdmin that operate on AdminMapper .
Login controller handles authentication and navigation for doctors, patients, and administrators. Key endpoints include:
@RequestMapping("/afterView") – returns the backend login page.
@RequestMapping("/index") – redirects to the appropriate login view based on user type.
@RequestMapping("/font/index") – directs patients to the patient login page.
@RequestMapping(value="/zixunAdd") – processes doctor image uploads, saving files to a configured directory and updating the doctor record.
@RequestMapping("/verificatio") – validates credentials for doctors, patients, and admins, sets session attributes, and redirects to the corresponding dashboard.
@RequestMapping("/sessionInvalidate") – logs out the current user by invalidating the session.
Additional helper endpoints manage account checks ( /sectionxList , /mimaUpate , /panzhanghao ), registration pages for doctors and admins, and password updates.
The article also includes several screenshots of the UI (embedded as <img src="..."/> tags) and a closing note encouraging readers to like the post.
Java Captain
Focused on Java technologies: SSM, the Spring ecosystem, microservices, MySQL, MyCat, clustering, distributed systems, middleware, Linux, networking, multithreading; occasionally covers DevOps tools like Jenkins, Nexus, Docker, ELK; shares practical tech insights and is dedicated to full‑stack Java development.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.