I. System description
Resource download path: download.csdn.net/download/qq…
This system is a use of SpringBoot as background development framework, Shiro as authority management framework, Spring Data Jpa as persistent layer framework, Layui, Layui Mini as the front end of the front end of the separation of the project.
Ready to use, get started immediately, you can facilitate the rapid development of a set of systems belonging to their own.
The system uses Nginx-1.16.1 as the Web server and Apache tomcat-7.0.96 as the application server. The browser accesses the Nginx server directly, and Nginx forwards background requests. The server deployment environment is Windows.
Second, system database design
Third, code structure
Iv. Display of functional interface
5. Project operation configuration description
Nginx configuration
Start by adding a server that listens on local port 80.
1, back-end request URL rewriting: intercept /rest/** path, add ** content to the end of http://localhost:8080, meaning to send the server to http://localhost:8080/** request.
2. Resource file mapping: Intercept the path of /file/** and map it to the local folder D:/demo/shiro_boot/file to realize the function of file server.
3. Web file mapping: intercept the root path and map it to the local folder D:/demo/shiro_boot/code/web/manage. The index page is index.html. Is start Nginx service, after the browser to http://localhost, you can directly display D: / demo/shiro_boot/code/web/manage/index. The HTML page.
4. Define a 404 error: When a 404 error occurs while accessing Nginx, redirect to /404.html.
5, definitions, 404 page path: when accessing / 404 HTML paths, mapped to D: / demo/shiro_boot/code/web/manage/page / 404. The HTML.
Note that Nginx’s location configuration is sequential. In a request, if the path has been intercepted earlier, it will not be intercepted by a later location.
Js configuration on the Web
1. Global Ajax request configuration
2. Global JS function configuration
The backend configuration