我可以: 邀请好友来看>>
ZOL星空(中国) > 技术星空(中国) > Spring Cloud云服务架构 - HongHu common-service 项目构建过程
返回列表
签到
手机签到经验翻倍!
快来扫一扫!

Spring Cloud云服务架构 - HongHu common-service 项目构建过程

44浏览 / 1回复

qq_r56i03301...

qq_r56i03301031

0
精华
32
帖子

等  级:Lv.2
经  验:543
  • Z金豆: 89

    千万礼品等你来兑哦~快点击这里兑换吧~

  • 城  市:
  • 注  册:2017-11-22
  • 登  录:2018-03-01
发表于 2017-12-19 11:50:16
电梯直达 确定
楼主

上一篇我们介绍了《整合spring cloud云服务架构 - HongHu云架构common-service代码结构分析》,本节我们将对common-service整个项目进行剖析,将整个构建的流程给记录下来,让更多的关注者来参考学习。

首先在构建spring cloud的common-service之前,我们需要准备的技术:

Maven(项目构建)、Spring Boot、Spring Cloud、微服务概念、去中心化思想、分布式等,针对于common-service的顶级项目,这里我们主要使用Maven来构建,闲话少说,我们直接上代码是最直观的。

1. 创建一个Maven的顶级项目,其中pom.xml文件配置如下:


	4.0.0
		org.springframework.cloud
		spring-cloud-starter-parent
		Dalston.RELEASE
		
	

	com.ml.honghu
	particle-commonservice
	0.0.1-SNAPSHOT
	pom

	particle-commonservice
	particle-commonservice project for Spring Boot

	
		particle-commonservice-config
		particle-commonservice-eureka
		particle-commonservice-mq
		particle-commonservice-cache
		particle-commonservice-sso
		particle-commonservice-apigateway
		particle-commonservice-zipkin
		particle-commonservice-admin
		particle-commonservice-turbine
		particle-commonservice-combine
		particle-commonservice-sequence
	

	
		UTF-8
		UTF-8
		1.8
		
		
		5.3.4.Final
		1.2.3
		1.0.26
		1.2.2
		1.2.3
		1.0.11
		2.6.9
		2.0.4
		2.4.2
		5.15.1
		1.4
		3.4.1 -->		
		1.7.7
		3.3.2
		2.4
		1.9
		1.3.1
		1.9.1
		1.1.40
		1.4.7
		17.0
		5.5.1
		1.4.7
		3.9
		3.2.5
		
		
		2.6.0
		1.2.7.Final
		0.0.1-SNAPSHOT
		1.5.1
		1.2.35
	

	
		

			
			
				org.springframework.cloud
				spring-cloud-dependencies
				Dalston.RELEASE
				pom
				import
			
			
			
				org.jasig.cas.client
				cas-client-core
				3.4.1
			
			
			
                io.springfox
                springfox-swagger2
                2.5.0
            
	        
                de.codecentric
                spring-boot-admin-server
                ${spring-boot-admin.version}
            
            
                de.codecentric
                spring-boot-admin-server-ui
                ${spring-boot-admin.version}
            
            
                de.codecentric
                spring-boot-admin-server-ui-hystrix
                ${spring-boot-admin.version}
            
            
                de.codecentric
                spring-boot-admin-server-ui-turbine
                ${spring-boot-admin.version}
            
            
                de.codecentric
                spring-boot-admin-server-ui-login
                ${spring-boot-admin.version}
            
            
			    de.codecentric
			    spring-boot-admin-server-ui-activiti
			    ${spring-boot-admin.version}
			
			
			    org.slf4j
			    slf4j-api
			    1.7.25
			
			
	            com.ml.honghu
	            component-bbse
            	${com.ml.honghu.componet.version}
        	
        	
	            com.ml.honghu
	            component-redis
	            ${com.ml.honghu.componet.version}
	        
	        
	           	com.ml.honghu
	            component-utils
	            ${com.ml.honghu.componet.version}
	        
	        
	           	com.ml.honghu
	            component-sequence-api
	            ${com.ml.honghu.componet.version}
	        
	        
	           	com.ml.honghu
	            component-admin-ui-zipkin
	            ${com.ml.honghu.componet.version}
	        
			
	           	com.ml.honghu
	            component-admin-ui-route
	            ${com.ml.honghu.componet.version}
	        
	        
	           	com.ml.honghu
	            component-zuul-label
				${com.ml.honghu.componet.version}
	        
		
	

当前的pom.xml文件引入了spring cloud相关版本配置,通用工具版本配置,honghu相关组件配置(因为其他的系统服务项目依赖于相关的组件,组件项目也是后面来创建的)

pclove

pclove


精华

帖子

等  级:Lv.7
经  验:24816
发表于 2017-12-19 12:58:06 1楼
高端大气上档次,低调奢华有内涵
高级模式
星空(中国)精选大家都在看24小时热帖7天热帖大家都在问最新回答

针对ZOL星空(中国)您有任何使用问题和建议 您可以 联系星空(中国)管理员查看帮助  或  给我提意见

快捷回复 APP下载 返回列表