In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail the implementation process of the IT equipment fixed assets management system in the actual combat of Java is like this, the content of the article is of high quality, so the editor will share it for you to do a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
I. brief introduction of the project
Functions include: user login, device management, device assignment, attached information, information bulletin, information maintenance, system management, chart statistics and other functions.
II. Project operation
Environment configuration: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (both supported by IntelliJ IDEA,Eclispe,MyEclispe,Sts)
Project technology: JSP + Spring + SpringMVC + MyBatis + html+ css + JavaScript + JQuery + Ajax + layui+ maven and so on.
Basic information operation: basic information operation: @ Controller@RequestMapping ("/ baseInfos") public class BaseInfoController {@ Autowired private BaseInfoService baseInfoService; @ Autowired private LogService logService; / * get all device type information * @ param map * @ return * / @ RequestMapping ("/ type/list") public String listDeviceType (ModelMap map) {List typeList = baseInfoService.listDeviceType () Map.put ("typeList", typeList); return "deviceTypes::table-refresh";} / * * add device type * @ param deviceType * @ return * / @ PostMapping ("/ type") @ ResponseBody public int addtDeviceType (DeviceType deviceType) {return baseInfoService.addtDeviceType (deviceType) } / * Delete device type * @ param typeId * @ return * / @ DeleteMapping ("/ type/ {typeId}") @ ResponseBody public int delteDeviceTypByid (@ PathVariable ("typeId") String typeId) {return baseInfoService.deleteDeviceTypeById (typeId) } / * modify the device type * @ param deviceType * @ return * / @ PutMapping ("/ type") @ ResponseBody public int updateDeviceType (DeviceType deviceType) {return baseInfoService.updateDeviceType (deviceType) } / * get all device brand information * @ param map * @ return * / @ RequestMapping ("/ brand/list") public String listDeviceBrand (ModelMap map) {List brandList = baseInfoService.listDeviceBrand (); map.put ("brandList", brandList); return "deviceBrands::table-refresh" } / * add device Brand * @ param deviceBrand * @ return * / @ PostMapping ("/ brand") @ ResponseBody public int addtDeviceBrand (DeviceBrand deviceBrand) {return baseInfoService.addtDeviceBrand (deviceBrand) } / * remove the device brand * @ param brandId * @ return * / @ DeleteMapping ("/ brand/ {brandId}") @ ResponseBody public int delteDeviceBrandByid (@ PathVariable ("brandId") String brandId) {return baseInfoService.deleteDeviceBrandById (brandId) } / * modify brand * @ param deviceBrand * @ return * / @ PutMapping ("/ brand") @ ResponseBody public int updateDeviceBrand (DeviceBrand deviceBrand) {return baseInfoService.updateDeviceBrand (deviceBrand) } / * get Syslog * @ param map * @ return * / @ RequestMapping ("/ log") public String listLog (ModelMap map, HttpServletRequest request) {String startTime = request.getParameter ("startTime"); String endTime = request.getParameter ("endTime"); List logs = logService.listLogsByDate (startTime,endTime); map.put ("logList", logs) Return "system::logList-refresh";}} Information Bulletin Controller Code: / * * Information Bulletin Controller * * / @ Controller@RequestMapping ("/ notice") public class NoticeController {@ Autowired NoticeService noticeService / * * View announcement details * @ param id * @ param map * @ return * / @ GetMapping ("/ {id}") public String readContent (@ PathVariable ("id") String id,ModelMap map) {Notice notice = noticeService.getNoticeById (id); map.put ("notice", notice); return "noticeContent" } / * query all announcements * @ param map * @ return / * / @ GetMapping ("/ list") public String listAllNotice (ModelMap map) {List noticeList = noticeService.listAll (); map.addAttribute ("noticeList", noticeList); return "notice::table-refresh" } / * New announcement * @ param notice * @ return * / @ PostMapping public String addNotice (Notice notice) {noticeService.addNotice (notice); return "notice" } / * Press id to delete announcement * @ param id * @ return * / @ DeleteMapping ("/ {id}") @ ResponseBody public int deleteNotice (@ PathVariable ("id") String id) {return noticeService.deleteNoticeById (id) }} on the Java actual combat IT equipment fixed assets management system implementation process is shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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: 248
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.