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 online course selection system by Java

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Java how to achieve online course selection system, I believe that many inexperienced people are helpless about this, this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

I. Brief description of the project

Function: The system is divided into three roles. Highest authority administrator, student, teacher, including student management, teacher management, curriculum management, course selection, withdrawal, grade inquiry. Teaching courses, viewing the list of selected courses and so on are fully functional.

II. Project Operation

Environment configuration: Jdk1.8 + Tomcat8.5 + Mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts are supported)

Project technology: JSP +Spring + SpringMVC + MyBatis + Bootstrap4+ css + JavaScript + JQuery + Ajax + particles.js + maven 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("Jump to 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 Home Page return "views/user/user_list"; } @GetMapping("/listpage") @ApiOperation("Query User Pagination Data Interface") @ApiImplicitParams({ @ApiImplicitParam(name = "UserQuery", value = "UserQuery 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 password"); return ret; } if(StringUtils.isEmpty(user.getEmail())){ ret.put("msg","please fill in mailbox"); return ret; } if(StringUtils.isEmpty(user.getTel())){ ret.put("msg","please fill in mobile 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