π«π«π« Nanjuxing background management (concise version)
SpringBoot multi module + Vue concise background management system
preface
Why do you want to do this project? Because I mainly do java, I have been developing back-end interfaces in the process of learning to do projects ποΌ Boring back-end development made me decide to develop the interface myself π§.
vue end learning has been going well π€οΌ Until I decided to build the backstage myself.. I found that the layout of the page end, the layout of the side menu and the design of the top history menu made me cry ποΌ I started turning to open source projects
Looking at the preview of the open source project, it's really great. I want to use it!!! π But what the hell is npm install Error ποΌοΌ After thousands of hardships, I finally pulled down my dependence!! π But this code is a lot! So many js! It's so serious! Do not understand π€!!! Finally, you choose to find a concise background management interface! π₯Ί
Yes, what I want to say is that I am the concise background management interface you are looking for π. We built the sidebar, breadcrumbs, and the top history menu. All the remaining interfaces are designed by you π€ οΌ To complete your own work.
If my project can help you, please light up a small star ππ
directory structure
Project address: GItee: https://gitee.com/duan_nan/nanjustar-template
πππ Nanjusatr admin is our front-end project. πππ
β οΈ β οΈ β nanjustar is our back-end project. β οΈ β οΈ β οΈ
πππ nanjustar.sql is the database file we need to use. The database needs to use MySql 8 or above. πππ
βοΈβοΈβοΈ After we directly pull the project to the local, we only need to make a simple configuration to start it. βοΈβοΈβοΈ
Database:
Create a new database in the local nanjustar(You can also change the name according to your own needs, and then run nanjustar.sql File.
Backend configuration:
1. Database configuration We entered nanjustar-mapper Module, find application-mapper.yml Configuration file for configuration modification,modify the database url To the database location, modify username and password. 2. Redis to configure We entered nanjustar-business Module, find application-bussiness.yml Modify the configuration file reids To the host name, modify it to yourself redis Yes.
Front end configuration:
Front end projects only need to be executed npm install or cnpm install that will do
β¨β¨β¨ After the front and rear end projects are started, we have two users, nanjustar/123456 (super administrator) and admin/123456 (administrator). The super administrator has the permission to manage the directory, but the administrator does not, so their front-end sidebar menus are different. β¨β¨β¨
Back end project structure:
βββnanjusatr -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar Parent project βββ nanjustar-api -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar-api modular βββ src βββ java βββ moudle βββ security -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Authority module βββ api -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Service interface βββ dto -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- dto Data return class βββ model -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Entity class βββ vo -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- vo Parameter receiving class βββ resource βββ application-api.yml -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- api Module profile βββ pom.xml βββ nanjustar-business -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar Business module βββ src βββ java βββ business -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Business implementation class βββ config -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Configuration class βββ filter -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Filter package βββ handler -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Processor package βββ util -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- tool kit βββ resource βββ application-business.yml -- -- -- -- -- -- -- -- -- -- -- -- -- business Module profile βββ pom.xml -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar Business module Pom file βββ nanjustar-common -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar Common module βββ src βββ java βββ annotation -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Annotation package βββ aop -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Cut bread βββ config -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Configuration package βββ constant -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Constant package βββ core -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Basic package βββ enums -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Enumeration package βββ exception -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Custom exception package βββ result -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Unified result set package βββ utils -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- tool kit βββ resource βββ application-common.yml βββ pom.xm -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar Common module Pom file βββ nanjustar-mapper -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar Data module βββ src βββ java βββ config -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Database configuration βββ handler -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- handler processor βββ mapper -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *.Mapper Interface βββ resource βββ mapper -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- mapper.xml Storage location βββ application-mapper.yml - -- -- -- -- -- -- -- -- nanjustar Data module profile βββ pom.xml -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar Data module Pom file βββ nanjustar-web -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar-wen modular βββ src βββ java βββ controller -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar controller βββ NanjustarApplication.java -- -- -- -- -- -- -- -- -- -- -- nanjustar Main startup class βββ resource βββ application.yml -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar-web configuration file βββ application-dev.yml -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar-web configuration file βββ pom.xml -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar-web Pom file βββ pom.xml -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- nanjustar Parent project Pom file
Front end project structure:
nanjustar-admin βββ public βββ js -- -- -- -- -- -- js folder βββ lottie.js -- -- -- -- -- -- animation js βββ favicon.ico -- -- -- -- -- -- Logo Icon βββ index.html -- -- -- -- -- -- index.html βββ src βββ api -- -- -- -- -- -- api Interface directory βββ assets -- -- -- -- -- -- Static resource directory βββ component -- -- -- -- -- -- Component directory βββ layout -- -- -- -- -- -- Layout directory βββ router -- -- -- -- -- -- Routing directory βββ store -- -- -- -- -- -- Cache directory βββ utils -- -- -- -- -- -- Tool catalog βββ views -- -- -- -- -- -- Interface directory βββ App.vue -- -- -- -- -- -- App.vue βββ main.js -- -- -- -- -- -- main.js βββ babel.config.js βββ package.json -- -- -- -- -- -- package.json βββ package-locak.json βββ vue.config.js -- -- -- -- -- -- vue.config.js
Project characteristics
- For back-end development, refer to "ruoyi open source project" and "Fengyu personal blog" for development.
- The background uses "element admin" design, sidebar, history label, automatic generation of bread crumbs, etc.
- The foreground menu route is obtained and rendered according to the permission level of the login user through database query, so as to realize the permission level.
- lottie animation is used in the login interface, which greatly improves the beauty of the project.
- The background interface only develops the welcome interface, leaving enough space for users to carry out secondary development.
- The front-end code level is simple without serious encapsulation, which is convenient for later developers to read and expand development.
- The code follows Alibaba's development specifications, the code is neat and convenient for secondary development.
Operating environment
development tool | explain |
---|---|
IDEA | Java development tool IDE |
WebStorm | Vue development tool IDE |
Navicat | MySQL remote connection tool |
Medis | Redis remote connection tool |
development environment | edition |
---|---|
JDK | 1.8 |
MySQL | 8.0.25 |
spring-Redis | 2.5.5 |
Vue | 2.6.11 |
Vex | 3.4.0 |
Project screenshot



