IDEA+SSH: Implementation of library management system

database

Regarding the database part required by the system, we use MySQL to perform database operations, including the establishment and deletion of tables, insertion, update and deletion of data. The primary and foreign key relationships between the tables should be noted here. and the properties that each table should have. In addition, we directly use Navicat to build tables, and do not use SQL language.

SQL Server 2008 provides a powerful visual interface and highly integrated management and development tools. Its data architecture is basically divided vertically, divided into: Protocol Layer (protocol layer), Relational Engine (relational engine), Storage Engine (storage engine), SQLOS.

The SQL execution process is the process of layer-by-layer analysis. The optimizer in the Relational Engine is cost-based (CBO), and its working process is very similar to Oracle. On top of the cost, it also supports a wealth of HINTs, including: connection hints, query hints, and table hints.

SSH

The so-called SSH framework is the combined framework mode of Struts+Spring+Hibernate. The SSH framework system is divided into four layers in terms of responsibilities: presentation layer, business logic layer, data persistence layer and domain module layer. Among them, Struts, as the overall infrastructure of the system, is responsible for the separation of MVC. In the model part of the Struts framework, it controls the business jump, and uses the Hibernate framework for the persistence layer to realize the persistence of entity objects.

The full name of MVC is Model View Controller, which is a model of software design. It organizes code with a method of separating business logic, data, and interface display, aggregates business logic into one component, and improves and personalizes customized interface and user interaction. At the same time, there is no need to rewrite the business logic. MVC was uniquely developed to map traditional input, processing and output functions in a logical graphical user interface structure.

MVC refers to a certain framework of the MVC pattern, which enforces separation of application input, processing, and output. Using MVC an application is divided into three core components: model, view, and controller. They each handle their own tasks.

JavaScript

Javascript, a high-level programming language that executes through interpretation , is a dynamically typed, object-oriented (prototype-based) literal translation language, an object-based and event-driven client-side scripting language with relative security. It is also a scripting language widely used in client-side Web development . It is often used to add dynamic functions to HTML pages, such as responding to various user operations. It is a dynamic, weakly typed, prototype-based language with built-in support classes.

A complete JavaScript implementation is composed of the following three different parts: the core ( ECMAScript ), the document object model (Document Object Model, referred to as DOM), the browser object model (Browser Object Model, referred to as BOM).

Javascript, a high-level programming language that executes through interpretation , is a dynamically typed, object-oriented (prototype-based) literal translation language. JavaScript is a prototype-based, function-first language. It is a multi-paradigm language that supports object-oriented programming , imperative programming, and functional programming. It provides syntax for manipulating text, arrays, dates, regular expressions , etc. It does not support I/O, such as networking, storage, and graphics, but these can be supported by its host environment.

HTML sum CSS

HTML is a set of markup symbols or code sets that are inserted into web page documents that can be displayed by a browser. These markup symbols and codes identify structural elements such as paragraphs, headings, and lists. HTML can also be used to place multimedia (such as pictures, video, and audio) on web pages, or to describe forms. The role of the browser is to interpret the markup code and render the page for the user to browse. HTML enables platform independence of information. In other words, any browser on any operating system sees the same page regardless of the computer on which it was created.

Style sheets have been used in the desktop publishing world for many years to apply typographic style and spacing directives to publications. CSS provides this functionality (and many more) for web developers, allowing them to apply typographic styles (font, size, etc.), colors, and page layout directives to web pages.

CSS is a flexible, cross-platform, standards-based language developed by the W3C. Note that although CSS has been around for many years, it is still considered new technology and is still not supported in exactly the same way by current popular browsers.

Bootstrap Template

Bootstrap is  a concise, intuitive and powerful front-end development framework developed by Mark Otto and Jacob Thornton, designers of American Twitter Company, based on HTML, CSS and JavaScript , which makes Web development faster. Bootstrap provides elegant HTML and CSS specifications, which are written in the dynamic CSS language Less . Bootstrap has been popular since its launch and has been a popular open source project on GitHub , including NASA 's MSNBC (Microsoft National Broadcasting Corporation)'s Breaking News. Some domestic mobile developers are familiar with frameworks, such as the WeX5 front-end open source framework, etc., which are also based on Bootstrap source code for performance optimization.

3. Demand analysis

User rights

When designing a system, we must first consider the needs of users, that is, users. For the library management system, its use objects are readers and administrators. One of the factors that must be considered when designing such a system with multiple users is the priority of different users. For the library management system, the librarian should have higher operating authority than the readers, and can control parts of the system. The data is artificially modified in order to correct errors in time and prevent loopholes or errors from occurring, so the priority of the administrator account is higher.

In order to distinguish different users, it is necessary to set up multiple login portals. For this system, there are two portals - administrator portal and reader portal. Next, we need to further analyze the specific operation permissions that administrators and readers should have based on the experience of using the library management system, and define the priority relationship between them.

admin rights

For a library administrator, his work generally includes: entering book information and classifying and numbering, recording the borrowing situation of books, and claiming compensation for losses from some readers who have not returned or damaged or even lost books according to the borrowing situation.

According to the work content, we can summarize some operations that the administrator account needs to perform: first, register the administrator account and log in to the administrator interface. The member needs to be able to view the relevant information of the reader and his borrowing status at any time, and also needs the authority to modify it manually (including the addition, deletion and modification of the reader's account and the addition, deletion and modification of the borrowing status).

Reader permission

The operation authority required by the reader is much simpler than that of the administrator. The most basic thing is to be able to register and log in to the reader's account, and then the reader must be able to borrow. operate. Secondly, in order to facilitate readers to find books, readers should be able to query the collection locations of books through the relevant information of the books. At the same time, readers need to be able to check their borrowing status at any time, such as: the number and name of borrowed books, the date of borrowing, the date of return, whether there is any compensation that needs to be paid, and the amount of the loss.

Finally, readers should be able to cancel the account according to their own wishes.

Book Borrowing Management

Book lending management is the main function of this system, and all functional designs are extended around this central requirement.

In order to facilitate management, the system should have the function of counting the inventory rate or borrowing rate of all books, and the damage rate and loss rate should also be taken into consideration.

For the convenience of readers, in addition to the basic borrowing and returning operations, I personally think it is necessary to add a renewal operation. Because when we use the school's library management system, we always think that it will be much more convenient to renew the loan. Every time we need to renew the loan, we always need to pay it back and then re-borrow it, which is a bit cumbersome, so I hope we The designed system can have the function of renewal.

The overall functions and pages are based on our school's library system, and suggestions are made based on their own usage, considering areas and functions that can be improved.

 

 

The project Github: https://github.com/charles-ksz/sshLearningLogin.git

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324175656&siteId=291194637