Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize classroom reservation management system with Java

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

In this article, the editor introduces in detail "how to achieve classroom reservation management system in Java". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to achieve classroom reservation management system in Java" can help you solve your doubts.

I. configuration of the project running environment:

Jdk1.8 + Tomcat8.5 + Mysql + HBuilderX (Webstorm is also fine) + Eclispe (both supported by IntelliJ IDEA,Eclispe,MyEclispe,Sts).

Project technology:

It is composed of Spring + SpringBoot+ mybatis + Maven + Vue and so on, and the Bamp S mode + Maven management and so on.

User Management Controller:

/ * * user Management Controller * / @ RequestMapping ("/ user/") @ Controllerpublic class UserController {@ Autowired private IUserService userService; @ Autowired private IRoleService roleService; @ Resource private ProcessEngineConfiguration configuration; @ Resource private ProcessEngine engine @ GetMapping ("/ index") @ ApiOperation ("Redirect user Page Interface") @ PreAuthorize ("hasRole ('administrator')") public String index (String menuid,Model model) {List roles = queryAllRole (); model.addAttribute ("roles", roles); model.addAttribute ("menuid", menuid); / / user homepage return "views/user/user_list" } @ GetMapping ("/ listpage") @ ApiOperation ("query user paging data interface") @ ApiImplicitParams ({@ ApiImplicitParam (name = "UserQuery", value = "user query object", defaultValue = "userQuery object")}) @ ResponseBody @ PreAuthorize ("hasRole ('administrator')") public PageList listpage (UserQuery userQuery) {return userService.listpage (userQuery) } / / add user @ PostMapping ("/ addUser") @ ApiOperation ("add user interface") @ ResponseBody public Map addUser (User user) {Map ret = new HashMap (); ret.put ("code",-1); if (StringUtils.isEmpty (user.getUsername () {ret.put ("msg", "Please fill in user name"); return ret } if (StringUtils.isEmpty (user.getPassword () {ret.put ("msg", "Please fill in the password"); return ret;} if (StringUtils.isEmpty (user.getEmail () {ret.put ("msg", "Please fill in the mailbox"); return ret } if (StringUtils.isEmpty (user.getTel () {ret.put ("msg", "Please fill in the phone number"); return ret;} if (StringUtils.isEmpty (user.getHeadImg () {ret.put ("msg", "Please upload avatar"); return ret;} if (userService.addUser (user))

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report