Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dict
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈文顺
dict
Commits
412d287c
Commit
412d287c
authored
Nov 16, 2018
by
yong.huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加eureka server
parent
9531146f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
93 additions
and
19 deletions
+93
-19
eureka-server
+1
-0
pom.xml
+74
-0
springboot-demo/pom.xml
+6
-18
springboot-demo/src/main/java/com/freemud/springbootdemo/SpringbootDemoApplication.java
+2
-0
springboot-demo/src/main/resources/application.yml
+10
-1
No files found.
eureka-server
@
6a9eb4b4
Subproject commit 6a9eb4b438697bb7cfc1f55a8cffb4754142f20f
pom.xml
View file @
412d287c
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<module>
springboot-demo
</module>
<module>
springboot-demo
</module>
<module>
demo-sdk
</module>
<module>
demo-sdk
</module>
<module>
demo-service
</module>
<module>
demo-service
</module>
<module>
eureka-server
</module>
</modules>
</modules>
...
@@ -30,12 +31,39 @@
...
@@ -30,12 +31,39 @@
<spring-cloud.version>
Edgware.SR2
</spring-cloud.version>
<spring-cloud.version>
Edgware.SR2
</spring-cloud.version>
<mybatis3.version>
1.3.0
</mybatis3.version>
<mybatis3.version>
1.3.0
</mybatis3.version>
<mapper.version>
1.1.1
</mapper.version>
<mapper.version>
1.1.1
</mapper.version>
<spring-cloud.version>
Dalston.SR4
</spring-cloud.version>
</properties>
</properties>
<dependencyManagement>
<dependencyManagement>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-dependencies
</artifactId>
<version>
${spring-cloud.version}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
com.freemud.demo
</groupId>
<artifactId>
demo-service
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.freemud.demo
</groupId>
<artifactId>
demo-sdk
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
cn.freemud.commons
</groupId>
<artifactId>
commons-base
</artifactId>
<version>
1.4.9-release
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<artifactId>
springfox-swagger2
</artifactId>
<version>
2.6.1
</version>
<version>
2.6.1
</version>
...
@@ -46,6 +74,24 @@
...
@@ -46,6 +74,24 @@
<artifactId>
springfox-swagger-ui
</artifactId>
<artifactId>
springfox-swagger-ui
</artifactId>
<version>
2.6.1
</version>
<version>
2.6.1
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<version>
1.3.2
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
<version>
1.0.26
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
1.2.32
</version>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
...
@@ -58,6 +104,33 @@
...
@@ -58,6 +104,33 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
<!-- 配置全局maven私服-->
<repositories>
<repository>
<id>
freemud
</id>
<name>
freemud Public Repositories
</name>
<url>
http://115.159.2.190:7654/nexus/content/groups/public/
</url>
</repository>
<repository>
<id>
freemud-hosted-snapshot
</id>
<name>
ctxsdhy-hosted-snapshot
</name>
<url>
http://115.159.2.190:7654/nexus/content/repositories/freemud-hosted-snapshot/
</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.18.1
</version>
<configuration>
<skipTests>
true
</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>
</project>
\ No newline at end of file
springboot-demo/pom.xml
View file @
412d287c
...
@@ -25,40 +25,26 @@
...
@@ -25,40 +25,26 @@
<java.version>
1.8
</java.version>
<java.version>
1.8
</java.version>
</properties>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-dependencies
</artifactId>
<version>
${spring-cloud.version}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
com.freemud.demo
</groupId>
<groupId>
com.freemud.demo
</groupId>
<artifactId>
demo-service
</artifactId>
<artifactId>
demo-service
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.freemud.demo
</groupId>
<groupId>
com.freemud.demo
</groupId>
<artifactId>
demo-sdk
</artifactId>
<artifactId>
demo-sdk
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.freemud.commons
</groupId>
<groupId>
cn.freemud.commons
</groupId>
<artifactId>
commons-base
</artifactId>
<artifactId>
commons-base
</artifactId>
<version>
1.4.9-release
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-aop
</artifactId>
<artifactId>
spring-boot-starter-aop
</artifactId>
...
@@ -75,9 +61,13 @@
...
@@ -75,9 +61,13 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-eureka
</artifactId>
</dependency>
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<version>
1.3.2
</version>
</dependency>
</dependency>
<dependency>
<dependency>
...
@@ -89,13 +79,11 @@
...
@@ -89,13 +79,11 @@
<dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
<artifactId>
druid
</artifactId>
<version>
1.0.26
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<artifactId>
fastjson
</artifactId>
<version>
1.2.32
</version>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
springboot-demo/src/main/java/com/freemud/springbootdemo/SpringbootDemoApplication.java
View file @
412d287c
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.support.spring.FastJsonpHttpMessageConverter4;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.support.spring.FastJsonpHttpMessageConverter4;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.http.converter.HttpMessageConverter
;
import
org.springframework.http.converter.HttpMessageConverter
;
...
@@ -11,6 +12,7 @@ import org.springframework.http.converter.HttpMessageConverter;
...
@@ -11,6 +12,7 @@ import org.springframework.http.converter.HttpMessageConverter;
@SpringBootApplication
@SpringBootApplication
@ComponentScan
(
basePackages
=
"com.freemud, cn.freemud"
)
@ComponentScan
(
basePackages
=
"com.freemud, cn.freemud"
)
@MapperScan
(
basePackages
=
"com.freemud.demo.mapper"
)
@MapperScan
(
basePackages
=
"com.freemud.demo.mapper"
)
@EnableEurekaClient
public
class
SpringbootDemoApplication
{
public
class
SpringbootDemoApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
springboot-demo/src/main/resources/application.yml
View file @
412d287c
spring
:
spring
:
application
:
application
:
name
:
s
arding-jdbc
name
:
s
pringboot-demo
redis
:
redis
:
host
:
115.159.67.166
host
:
115.159.67.166
port
:
5289
port
:
5289
...
@@ -56,4 +56,13 @@ logging:
...
@@ -56,4 +56,13 @@ logging:
swagger_enable
:
true
swagger_enable
:
true
eureka
:
instance
:
statusPageUrlPath
:
${management.context-path}/info
healthCheckUrlPath
:
${management.context-path}/health
preferIpAddress
:
true
client
:
serviceUrl
:
defaultZone
:
http://localhost:8761/eureka/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment