基于javaweb+mysql的ssm宠物医院管理系统(java+ssm+jquery+layui+js+mysql)
基于javaweb+mysql的ssm宠物医院管理系统(java+ssm+jquery+layui+js+mysql)
私信源码获取及调试交流
运行环境
Java≥8、MySQL≥5.7、Tomcat≥8
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb+mysql的SSM宠物医院管理系统(java+ssm+jquery+layui+js+mysql)
项目介绍
基于SSM的宠物医院管理系统
角色:管理员、用户、医生
管理员: 管理员登录后,通过管理员菜单来管理后台系统。主要功能有:个人中心、用户管理、医生管理、医学知识管理、科室信息管理、医生信息管理、预约挂号管理、医嘱信息管理、药品信息管理、订单信息管理、留言板管理、系统管理等功能
用户:用户进入系统可以个人中心、预约挂号管理、医嘱信息管理、订单信息管理等
医生: 个人中心、预约挂号管理、医嘱信息管理
用户:用户进入系统可以个人中心、预约挂号管理、医嘱信息管理、订单信息管理等
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 5.是否Maven项目: 否;查看源码目录中是否包含pom.xml;若包含,则为maven项目,否则为非maven项目; 6.数据库:MySql 5.7/8.0等版本均可;
技术栈
后端:SSM(Spring+SpringMVC+Mybatis) 前端:JSP+CSS+JS+JQUERY+Layui
使用说明
使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,修改配置,运行项目; 3. 将项目中db.xml配置文件中的数据库配置改为自己的配置,然后运行;public class LoginController { @Autowired private ResultMap resultMap; @Autowired private UserService userService; @Autowired private PageService pageService; @Autowired private UserRoleService userRoleService; private final Logger logger = LoggerFactory.getLogger(LoginController.class);
1234567891011121314151617181920public String userAddPage() { return "sa/userAdd"; /** * Method name: userPage <BR> * Description: 用户管理页面 <BR> * @return String<BR> */ @RequestMapping(value = "/userPage") public String userPage() { return "sa/userList"; /** * Method name: getAllUserByLimit <BR> * Description: 根据条件获取所有用户 <BR>
123456789101112131415161718192021222324252627@Autowired private UserRoleService userRoleService; @Autowired public UserController(ResultMap resultMap) { this.resultMap = resultMap; /** * 返回有权限信息 */ @RequestMapping(value = "/getMessage", method = RequestMethod.GET) public ResultMap getMessage() { return resultMap.success().message("您拥有用户权限,可以获得该接口的信息!");
12345678910111213141516171819202122* @param roleId * @param pageIds * @return String<BR> */ @RequestMapping("/addPageRoleByRoleId") @ResponseBody public String addPageRoleByRoleId(Integer roleId, Integer[] pageIds) { if (null == roleId) { return "ERROR"; // 先删除老的权限 boolean flag1 = pageRoleService.delPageRoleByRoleId(roleId);
1234567891011121314151617181920212223@ResponseBody public ResultMap login(String username, String password) { return userService.login(username, password); /** * Method name: login <BR> * Description: 登录页面 <BR> * @return String login.html<BR> */ @RequestMapping(value = "/index") public String login() { return "login"; /**
123456789101112131415161718192021222324/** * 返回 没有权限 */ @RequestMapping(value = "/notRole", method = RequestMethod.GET) @ResponseBody public ResultMap notRole() { Subject subject = SecurityUtils.getSubject(); User user = (User) subject.getPrincipal(); if (user != null) { logger.info("{}---没有权限!", user.getName()); return resultMap.success().message("您没有权限!"); /**演示页面**/
12345678910111213141516171819202122232425return "SUCCESS"; return "ERROR"; /** * Method name: addPageRoleByRoleId <BR> * Description: 增加某个角色的权限页面 <BR> * @param roleId * @param pageIds * @return String<BR> */ @RequestMapping("/addPageRoleByRoleId") @ResponseBody public String addPageRoleByRoleId(Integer roleId, Integer[] pageIds) { if (null == roleId) {
1234567891011121314151617181920212223242526/** * 登录控制类 */ @Controller("OpenLogin") @RequestMapping() public class LoginController { @Autowired private ResultMap resultMap; @Autowired private UserService userService; @Autowired
123456789101112131415161718192021*/ @RequestMapping("/addPage") @ResponseBody public Page addPage(Page page) { return pageService.addPage(page); /** * Method name: delPageById <BR> * Description: 根据页面id删除页面 <BR> * @param id * @return ResultMap<BR> */ @RequestMapping("/delPageById")
12345678910111213141516171819202122232425@ResponseBody public Page addPage(Page page) { return pageService.addPage(page); /** * Method name: delPageById <BR> * Description: 根据页面id删除页面 <BR> * @param id * @return ResultMap<BR> */ @RequestMapping("/delPageById") @ResponseBody
12345678910111213141516171819202122@ResponseBody public String addRole(String name) { return roleService.addRole(name); /** * Method name: delManageRole <BR> * Description: 根据角色id删除角色 <BR> * @param id * @return String<BR> */ @RequestMapping("/delRole") @ResponseBody public String delRole(int id) {
12345678910111213141516171819202122232425* 返回有权限信息 */ @RequestMapping(value = "/getMessage", method = RequestMethod.GET) public ResultMap getMessage() { return resultMap.success().message("您拥有用户权限,可以获得该接口的信息!"); /** * 修改用户信息页面user/userEdit.html */ @RequestMapping(value = "/editUserPage") public String editUserPage(Long userId, Model model) { model.addAttribute("manageUser", userId); if (null != userId) { User user = userService.selectByPrimaryKey(userId); model.addAttribute("manageUser", user);
123456789101112131415161718192021222324252627return "tu3"; /**演示页面**/ /** * Method name: logout <BR> * Description: 退出登录 <BR> * @return String<BR> */ @RequestMapping(value = "/logout", method = RequestMethod.GET) public String logout() { Subject subject = SecurityUtils.getSubject(); User user = (User) subject.getPrincipal();
1234567891011121314151617181920212223Subject subject = SecurityUtils.getSubject(); User user = (User) subject.getPrincipal(); if (null != user) { model.addAttribute("user", user); List<Page> pageList = pageService.getAllRolePageByUserId(user.getId()+""); model.addAttribute("pageList", pageList); return "index"; } else { return "login"; /**
1234567891011121314151617181920private ResultMap resultMap; @Autowired private UserService userService; @Autowired private PageService pageService; @Autowired private UserRoleService userRoleService; private final Logger logger = LoggerFactory.getLogger(LoginController.class); /** * 返回 尚未登陆信息 */ @RequestMapping(value = "/notLogin", method = RequestMethod.GET)
12345678910111213141516171819202122232425* Method name: userAddPage <BR> * Description: 用户添加页面 <BR> * @return String<BR> */ @RequestMapping(value = "/userAddPage") public String userAddPage() { return "sa/userAdd"; /** * Method name: userPage <BR> * Description: 用户管理页面 <BR> * @return String<BR>
1234567891011121314151617181920212223* @return String<BR> */ @RequestMapping("/updateRole") @ResponseBody public String updateRole(Integer id, String name) { int n = roleService.updateRoleById(id, name); if (n != 0) { return "SUCCESS"; return "ERROR"; /** * Method name: addPageRoleByRoleId <BR> * Description: 增加某个角色的权限页面 <BR>
123456789101112131415161718192021222324* Description: 用户管理页面 <BR> * @return String<BR> */ @RequestMapping(value = "/userPage") public String userPage() { return "sa/userList"; /** * Method name: getAllUserByLimit <BR> * Description: 根据条件获取所有用户 <BR> * @param userParameter * @return Object<BR> */
12345678910111213141516171819202122232425
相关知识
基于javaweb+mysql的ssm宠物医院管理系统(java+ssm+jquery+layui+js+mysql)
《基于javaweb+mysql数据库实现的宠物领养网站》宠物管理
【网站项目】基于SSM的275宠物医院管理系统
基于SSM的宠物医院信息系统设计与实现 源码
基于ssm宠物商店领养管理系统毕业论文.docx
基于ssm宠物寄养管理系统的设计与实现
基于SSM的宠物领养系统【源码开源】
宠物医院管理系统
SSM宠物领养管理系统
基于SSM的宠物店销售系统设计与实现
网址: 基于javaweb+mysql的ssm宠物医院管理系统(java+ssm+jquery+layui+js+mysql) https://www.mcbbbk.com/newsview259100.html
上一篇: Java项目:宠物医院预约挂号系 |
下一篇: 基于SSM的宠物医院信息系统设计 |
推荐分享

- 1我的狗老公李淑敏33——如何 5096
- 2南京宠物粮食薄荷饼宠物食品包 4363
- 3家养水獭多少钱一只正常 3825
- 4豆柴犬为什么不建议养?可爱的 3668
- 5自制狗狗辅食:棉花面纱犬的美 3615
- 6狗交配为什么会锁住?从狗狗生 3601
- 7广州哪里卖宠物猫狗的选择性多 3535
- 8湖南隆飞尔动物药业有限公司宠 3477
- 9黄金蟒的价格 3396
- 10益和 MATCHWELL 狗 3352