Build Dubbo + ZooKeeper with Maven in IDEA(1)

Pre-requisite:

You can read & understand this series without type any code.
However, if you want to try the process out, you need to have a ZooKeeper up and running somewhere.
So you may find one or set up one.

Step 1 Create a new project in IDEA

File -> New -> Project
Select to build with Maven
Specify the information
Click 'Finish' to create the project
Open in a new window

Step 2 Create an service interface that exposes some thing

add a package
enter name of the package
Create a class inside the package
Name it and select the type to be interface
Expose an interface

Step 3 Add an implementation for the service

We need to add an implementation for the service to do the real work.


Create a new class
Name and select type
Check the initial status after creation
Make it to implement the service interface
Select to implement the method automatically
Confirm
Add some simple output code

Step 4 Build now to see that the code is good

'View' -> 'Tool Windows' -> 'Maven Projects' to show the Maven tool-view
Check the effect of the tool-view
Double-click on 'compile' and see that we build successfully
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,499评论 0 10
  • 安逸日子过久了,我们总会忘了自己是谁追寻什么。开心吗,更多的是肆意过后无线的空虚,一层裹着一层的空虚。一个月,当真...
    凉喜阅读 281评论 0 0
  • 既已入坑,那就先随便写个主题练练手吧。 写这一行的时候距离第一行已经过了好几分钟==,想了半天还是决定先选个lz熟...
    dudulu阅读 552评论 2 1
  • 1 标准接口 张老师在课上讲述了C++内存分配器的标准接口,接口规格如下: 一组typedef:-allocato...
    clamxyz阅读 743评论 0 0