In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the Java Springboot open source micro-service architecture management background built example analysis, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
Preview of main features of the project
1. Unified authentication function: support four login modes of oauth3, support user name, password plus graphic verification code login, support mobile phone number plus password login, support openId login, support third party system single sign-on.
2. Distributed system basic support: service registration discovery, routing and load balancing, service degradation and circuit breaker, service flow restriction (url/ method level), unified configuration center, unified log center, unified search center, unified distributed cache operation class, cacheManager configuration extension, distributed lock, distributed task scheduler, support for CI/CD continuous integration (including front-end and back-end), distributed Id generator, Distributed transactions (strong consistency / final consistency), log link tracing
3. System monitoring functions: service call chain monitoring, application topology diagram, slow query SQL monitoring, application throughput monitoring (qps, rt), service degradation, circuit breaker monitoring, service current limit monitoring, micro service monitoring, server monitoring, redis monitoring, mysql monitoring, elasticSearch monitoring, nacos monitoring, prometheus monitoring
4. Business basic function support: multi-tenancy (application isolation), high-performance method-level idempotent support, RBAC rights management, fine-grained control (method, url level), fast import and export functions, automatic crud operation in database access layer, code generator, various convenient development tools based on Hutool, gateway aggregation of Swagger interface documents for all services, unified cross-domain handling, unified exception handling.
Core debugging part
Environment: computer with 16G memory, JDK1.8 or above, Maven3.6 or above, development tools Idea,mysql 5.7 or above, redis 3 or above.
1. Import the project from the open source github, or the address on gitee, as shown in the following figure. If the network is fast, it will be good for a few minutes. If the network speed is slow, wait.
2. After the import is completed, it looks like this, so I will ask you if you are too much! No way, who said we are Internet background developers!
3. Start the dependent program, redis,nacos (similar to zookeeper or eureka in spring boot), if there is elasticsearch (search engine similar to solr), and sentinel (traffic sentry), you can also start it. If you don't have it, you don't have to start it, and then start it again with the increase of business volume. After all, small companies
Redis service startup (windows), of course, the production environment is linux
Nacos registry
4. Execute the database script and import the database, as shown below
Source all at once.
Mysql > source file-center.sql mysql > source oauth-center.sql mysql > source tx-manager.sql mysql > source tx-logger.sql mysql > source user-center.sql mysql > source xxl-job.sql
5. Modify the configuration file and replace the ip of all the configuration files with the 127.0.0.1 # idea of the local machine, as shown in the figure:
6. Let's start!
A, start the certification authority zlt-uaa
B. Start user Center zlt-bussiness/user-center
C, start the gateway zlt-gateway/zuul-gateway
D. Start the front-end engineering zlt-web/back-web
As shown below:
Take a look at the screenshot of registry service governance:
7. Access test localhost:8066: account password admin:admin has been successfully tested so far. Then run other modules, including file center, code generator, micro-service application monitoring, unified configuration center, unified log center, slow query sql, distributed task scheduling, service flow limit, degraded circuit breaker console and application throughput monitoring, APM monitoring, distributed transaction (tx-lcn), search center, home page (traffic statistics). Interested students can explore by themselves.
The above is all the contents of the article "sample Analysis of Java Springboot Open Source Micro Services Architecture Management background". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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: 0
*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.