Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
檀越@新空间
dubbo-demo
提交
c98804c9
D
dubbo-demo
项目概览
檀越@新空间
/
dubbo-demo
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dubbo-demo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c98804c9
编写于
5月 18, 2023
作者:
檀越@新空间
🐭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Initial commit
上级
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
119 addition
and
0 deletion
+119
-0
.gitignore
.gitignore
+33
-0
pom.xml
pom.xml
+44
-0
src/main/java/com/kwan/shuyu/DubboApplication.java
src/main/java/com/kwan/shuyu/DubboApplication.java
+11
-0
src/main/java/com/kwan/shuyu/config/ZookeeperConfig.java
src/main/java/com/kwan/shuyu/config/ZookeeperConfig.java
+21
-0
src/main/resources/application.yml
src/main/resources/application.yml
+10
-0
未找到文件。
.gitignore
0 → 100644
浏览文件 @
c98804c9
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
pom.xml
0 → 100644
浏览文件 @
c98804c9
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.kwan.shuyu
</groupId>
<artifactId>
dubbo-demo
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<properties>
<maven.compiler.source>
8
</maven.compiler.source>
<maven.compiler.target>
8
</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<version>
2.0.1.RELEASE
</version>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<version>
1.16.10
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-io
</artifactId>
<version>
1.3.2
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<version>
3.1
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
1.2.83
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
src/main/java/com/kwan/shuyu/DubboApplication.java
0 → 100644
浏览文件 @
c98804c9
package
com.kwan.shuyu
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
public
class
DubboApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
DubboApplication
.
class
,
args
);
}
}
src/main/java/com/kwan/shuyu/config/ZookeeperConfig.java
0 → 100644
浏览文件 @
c98804c9
package
com.kwan.shuyu.config
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
/**
* zookeeper的配置类
*
* @author : qinyingjie
* @version : 2.2.0
* @date : 2023/5/10 12:37
*/
@Configuration
public
class
ZookeeperConfig
{
@Value
(
"${kwan.zookeeper.hostlist}"
)
private
String
hostlist
;
}
\ No newline at end of file
src/main/resources/application.yml
0 → 100644
浏览文件 @
c98804c9
server
:
port
:
8888
spring
:
application
:
name
:
zookeeper-service
kwan
:
zookeeper
:
hostlist
:
120.79.36.53:2181,120.79.36.53:2182,120.79.36.53:2183
#多个节点用逗号分隔
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录