Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize classroom reservation management system with Java

Shulou Source: shulou.com Published: 2022-06-01 19:35:26 09月24日 Update

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))

Tags: User administration role administrator interface password classroom management system system reservation article permissions control query information content object mobile phone mobile phone number controller Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Technology MariaDB Apple MySQL