Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to quickly create a Dubbo Project by Alibaba cloud toolkit

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to quickly create a Dubbo project by Alibaba cloud toolkit". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Arthas can help you solve problems like the following when you are at a loss as to what to do:

From which jar package was this class loaded? Why are all kinds of related Exception reported?

Why didn't the code I changed be executed? Is it because I don't have commit? Is the branch wrong?

If you can't debug online if you encounter a problem, can you only republish it by adding a log?

Online encounter a user's data processing problems, but online also can not debug, offline can not be reproduced!

Is there a global perspective to view the health of the system?

Is there any way to monitor the real-time running status of JVM?

Arthas supports JDK 6 layers, supports Linux/Mac/Winodws, adopts command line interaction mode, and provides rich automatic completion functions of Tab, which further facilitates the location and diagnosis of problems. If you have installed Alibaba cloud Toolkit, you no longer need to install the client. There is an embedded Arthas startup page:

Official document: https://alibaba.github.io/arthas/quick-start.html

Common commands:

1.dashboard returns information showing the current process in real time.

This is the equivalent of jconsole.

Windows+r jconsole

2. Thread ID (thread id)

The stack of the print thread id

3. Decompilation through jad

4.jvm to view current jvm information

Basic command

Help-- View Command help Information

Cat-- prints the contents of the file, similar to the cat command in linux

Pwd-- returns the current working directory, similar to the linux command

Cls-- clears the current screen area

Session-- to view information about the current session

Reset-- reset enhanced classes, all enhanced classes enhanced by Arthas will be restored, and all enhanced classes will be reset when the Arthas server is closed.

Version-- outputs the Arthas version number loaded by the current target Java process

History-- print Command History

Quit-- exits the current Arthas client, and other Arthas clients are not affected

Shutdown-- closes the Arthas server, and all Arthas clients exit

List of keymap--Arthas shortcut keys and custom shortcut keys

Web Console

Arthas currently supports Web Console. After a successful attach, you can visit http://127.0.0.1:8563/ directly.

Steps for Alibaba cloud toolkit to quickly create a Dubbo project

Open IntelliJ IDEA and select File > New > Project in the menu bar.

Click Apache Dubbo in the navigation bar on the left side of the New Project dialog box, select the JDK version in the right interface, and then click Next.

Set the basic configuration of the project, and then click Next.

Basic parameter setting instructions and examples:

Project: select Maven Project.

GroupId: enter the appropriate Group ID, such as com.dubbo.example.

ArtifactId: enter the appropriate Artifact ID, such as dubbo-demo.

Version: the version of the application project, such as 1.0-SNAPSHOT.

Dubbo: select the version of Dubbo, such as 2.7.2.

Type: type of project. Check Consumer and Provider to create engineering Demo for service providers and service consumers.

The version of Spring Boot:Spring Boot, such as 2.1.5.RELEASE.

Set up Project name and Project location, and then click Finish.

This is the end of the content of "how to quickly create a Dubbo project by Alibaba cloud toolkit". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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: 209

*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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report