Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
caopu16
whatsmars
提交
d6b6fd03
W
whatsmars
项目概览
caopu16
/
whatsmars
与 Fork 源项目一致
Fork自
武汉红喜 / whatsmars
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
d6b6fd03
编写于
9月 14, 2017
作者:
S
shenhongxi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
springcloud configserver
上级
cf976759
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
107 addition
and
2 deletion
+107
-2
whatsmars-spring-cloud/configfile/server-test.properties
whatsmars-spring-cloud/configfile/server-test.properties
+1
-0
whatsmars-spring-cloud/pom.xml
whatsmars-spring-cloud/pom.xml
+1
-0
whatsmars-spring-cloud/whatsmars-springcloud-configserver/pom.xml
...s-spring-cloud/whatsmars-springcloud-configserver/pom.xml
+72
-0
whatsmars-spring-cloud/whatsmars-springcloud-configserver/src/main/java/com/itlong/whatsmars/springcloud/configserver/ConfigApplication.java
...whatsmars/springcloud/configserver/ConfigApplication.java
+18
-0
whatsmars-spring-cloud/whatsmars-springcloud-configserver/src/main/resources/application.yml
...ringcloud-configserver/src/main/resources/application.yml
+13
-0
whatsmars-spring-cloud/whatsmars-springcloud-eureka/src/main/java/com/itlong/whatsmars/springcloud/eureka/EurekaApplication.java
...tlong/whatsmars/springcloud/eureka/EurekaApplication.java
+2
-2
未找到文件。
whatsmars-spring-cloud/configfile/server-test.properties
0 → 100644
浏览文件 @
d6b6fd03
foo
=
toutiao
\ No newline at end of file
whatsmars-spring-cloud/pom.xml
浏览文件 @
d6b6fd03
...
...
@@ -16,6 +16,7 @@
<description>
The demo module of springcloud project
</description>
<modules>
<module>
whatsmars-springcloud-eureka
</module>
<module>
whatsmars-springcloud-configserver
</module>
</modules>
<properties>
<skip_maven_deploy>
true
</skip_maven_deploy>
...
...
whatsmars-spring-cloud/whatsmars-springcloud-configserver/pom.xml
0 → 100644
浏览文件 @
d6b6fd03
<?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-configserver
</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-config-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-configserver/src/main/java/com/itlong/whatsmars/springcloud/configserver/ConfigApplication.java
0 → 100644
浏览文件 @
d6b6fd03
package
com.itlong.whatsmars.springcloud.configserver
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.config.server.EnableConfigServer
;
import
javax.swing.*
;
/**
* Created by shenhongxi on 2017/9/14.
*/
@EnableConfigServer
@SpringBootApplication
public
class
ConfigApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
ConfigApplication
.
class
,
args
);
}
}
whatsmars-spring-cloud/whatsmars-springcloud-configserver/src/main/resources/application.yml
0 → 100644
浏览文件 @
d6b6fd03
server
:
port
:
8762
spring
:
cloud
:
config
:
server
:
git
:
uri
:
https://github.com/javahongxi/whatsmars
searchPaths
:
whatsmars-spring-cloud/configfile
username
:
javahongxi
password
:
jd854749
label
:
master
\ No newline at end of file
whatsmars-spring-cloud/whatsmars-springcloud-eureka/src/main/java/com/itlong/whatsmars/springcloud/eureka/Eureka
ServerApp
.java
→
whatsmars-spring-cloud/whatsmars-springcloud-eureka/src/main/java/com/itlong/whatsmars/springcloud/eureka/Eureka
Application
.java
浏览文件 @
d6b6fd03
...
...
@@ -6,8 +6,8 @@ import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@EnableEurekaServer
@SpringBootApplication
public
class
Eureka
ServerApp
{
public
class
Eureka
Application
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Eureka
ServerApp
.
class
,
args
);
SpringApplication
.
run
(
Eureka
Application
.
class
,
args
);
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录