Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
武汉红喜
whatsmars
提交
c977e528
W
whatsmars
项目概览
武汉红喜
/
whatsmars
通知
3
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
whatsmars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c977e528
编写于
9月 14, 2017
作者:
S
shenhongxi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
springcloud eureka
上级
e1936835
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
123 addition
and
0 deletion
+123
-0
pom.xml
pom.xml
+1
-0
whatsmars-spring-cloud/pom.xml
whatsmars-spring-cloud/pom.xml
+26
-0
whatsmars-spring-cloud/whatsmars-springcloud-eureka/pom.xml
whatsmars-spring-cloud/whatsmars-springcloud-eureka/pom.xml
+72
-0
whatsmars-spring-cloud/whatsmars-springcloud-eureka/src/main/java/com/itlong/whatsmars/springcloud/eureka/EurekaServerApp.java
.../itlong/whatsmars/springcloud/eureka/EurekaServerApp.java
+13
-0
whatsmars-spring-cloud/whatsmars-springcloud-eureka/src/main/resources/application.yml
...ars-springcloud-eureka/src/main/resources/application.yml
+11
-0
未找到文件。
pom.xml
浏览文件 @
c977e528
...
...
@@ -30,6 +30,7 @@
<module>
whatsmars-redis
</module>
<module>
whatsmars-motan
</module>
<module>
whatsmars-motan-demo
</module>
<module>
whatsmars-spring-cloud
</module>
</modules>
<properties>
...
...
whatsmars-spring-cloud/pom.xml
0 → 100644
浏览文件 @
c977e528
<?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"
>
<parent>
<artifactId>
whatsmars-parent
</artifactId>
<groupId>
com.itlong
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
whatsmars-spring-cloud
</artifactId>
<packaging>
pom
</packaging>
<name>
${project.artifactId}
</name>
<description>
The demo module of springcloud project
</description>
<modules>
<module>
whatsmars-springcloud-eureka
</module>
</modules>
<properties>
<skip_maven_deploy>
true
</skip_maven_deploy>
</properties>
</project>
\ No newline at end of file
whatsmars-spring-cloud/whatsmars-springcloud-eureka/pom.xml
0 → 100644
浏览文件 @
c977e528
<?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>
<artifactId>
whatsmars-springcloud-eureka
</artifactId>
<packaging>
jar
</packaging>
<name>
${project.artifactId}
</name>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
1.5.2.RELEASE
</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-eureka-server
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-dependencies
</artifactId>
<version>
Dalston.RC1
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>
spring-milestones
</id>
<name>
Spring Milestones
</name>
<url>
https://repo.spring.io/milestone
</url>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
</repository>
</repositories>
</project>
\ No newline at end of file
whatsmars-spring-cloud/whatsmars-springcloud-eureka/src/main/java/com/itlong/whatsmars/springcloud/eureka/EurekaServerApp.java
0 → 100644
浏览文件 @
c977e528
package
com.itlong.whatsmars.springcloud.eureka
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.netflix.eureka.server.EnableEurekaServer
;
@EnableEurekaServer
@SpringBootApplication
public
class
EurekaServerApp
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
EurekaServerApp
.
class
,
args
);
}
}
\ No newline at end of file
whatsmars-spring-cloud/whatsmars-springcloud-eureka/src/main/resources/application.yml
0 → 100644
浏览文件 @
c977e528
server
:
port
:
8761
eureka
:
instance
:
hostname
:
localhost
client
:
registerWithEureka
:
false
fetchRegistry
:
false
serviceUrl
:
defaultZone
:
http://${eureka.instance.hostname}:${server.port}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录