A distributed backend management system based on vue+spring Mvc+mybatis+shiro+dubbo development

Source: Internet
Author: User

Recent projects using Shiro to do rights management, in the development process also stepped on some pits, so there is the development of an application to consolidate the knowledge of the idea, just in the process of development to learn the Vue development.

technology stack, now the front and rear end of the separation of the road, so also adopted a front-end separation mode, the front-end based on Vue+element, the back-end web based on spring MVC, with Dubbo to provide distributed services, the front-end can be deployed to Nginx, the backend web can be deployed to Tomcat , jetty or Undertow and other servlet containers, Dubbo Services can be run as a standalone Java process, in which each layer is easier to scale horizontally and can be flexibly adjusted according to the volume of business.

Distributed services are developed based on the Dubbo framework, and the implementation of the business logic is done at that level. Dubbo can be seamlessly integrated with spring, its service registration and discovery mechanism guarantees the robustness and scalability of the service, its monitoring center can record the operation of the service and the number of calls, can be based on monitoring data to make service instances of the increase or decrease decision. The

Web Service provides a restful API for front-end invocation, and is responsible for authentication and authorization of each invocation, as it is a back-and-forth separation structure, the web side is stateless, and JWT is used for authentication. Based on Shiro to write a RESTful filter implementation authentication (in the actual development found that the Shiro comes with a rest filter in a stateless Web environment will have a problem), after the identity authentication and authentication succeeds, calls the Dubbo RPC service to complete the business logic.

The front-end is based on vue+element development, with vue-router based on user rights to implement dynamic routing, so that without permission, even if you enter a URL in the browser, can not invoke the function outside the permissions, with Axios call RESTful API, in the header carry JWT , the Web service validates the user's identity and permissions based on that token.







Project Code:

Service side: Https://github.com/lining90567/dubbo-demo-server

Front End: https://github.com/lining90567/dubbo-demo-client

A distributed backend management system based on vue+spring Mvc+mybatis+shiro+dubbo development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.