189 8069 5689

springcloud中common-service的项目构建过程的是怎样的

spring cloud中common-service的项目构建过程的是怎样的,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

成都创新互联是专业的山东网站建设公司,山东接单;提供成都网站建设、成都做网站,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行山东网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!

首先在构建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-base
            	${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相关组件配置(因为其他的系统服务项目依赖于相关的组件,组件项目也是后面来创建的)。

关于spring cloud中common-service的项目构建过程的是怎样的问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注创新互联行业资讯频道了解更多相关知识。


新闻名称:springcloud中common-service的项目构建过程的是怎样的
标题链接:http://cdxtjz.cn/article/jpgdhd.html

其他资讯