关于springcloud中eureka server端配置的一些总结

1.yml格式用:号,properties格式用 = 号;

2.maven下载包的时间较长,如果出现断网等情况可能会导致jar包读不到,不要着急,一个个删了重下

3.java.net.ConnectException: Connection refused: connect 可能是因为端口被占用,如果涉及jersey也可能需要增加依赖:


    com.sun.jersey
    jersey-bundle
    1.19

附上第一次成功的pom



	4.0.0

	com.sagw
	eurekaserver
	0.0.1-SNAPSHOT
	jar

	eurekaserver
	Demo project for Spring Boot

	
		org.springframework.boot
		spring-boot-starter-parent
		1.5.13.RELEASE
		 
	
	
		UTF-8
		UTF-8
		1.8
		Edgware.SR3
	
	
		
			
				org.springframework.cloud
				spring-cloud-dependencies
				${spring-cloud.version}
				pom
				import
			
		
	
	

	
		
            org.springframework.cloud
            spring-cloud-starter

        
		
			org.springframework.cloud
			spring-cloud-starter-netflix-eureka-server
		

		
			org.springframework.boot
			spring-boot-starter-test
			test
		
		
		    org.springframework.boot
		    spring-boot-starter-tomcat
		    provided
		
		
		    org.springframework.boot
		    spring-boot-starter-undertow
		
 		
	        com.sun.jersey
	       	jersey-bundle
         	1.19
     	
	

	
		
			
				org.springframework.boot
				spring-boot-maven-plugin
			
		
	
	
		
			spring-snapshots
			Spring Snapshots
			https://repo.spring.io/snapshot
			
				true
			
		
		
			spring-milestones
			Spring Milestones
			https://repo.spring.io/milestone
			
				false
			
		
	

	
		
			spring-snapshots
			Spring Snapshots
			https://repo.spring.io/snapshot
			
				true
			
		
		
			spring-milestones
			Spring Milestones
			https://repo.spring.io/milestone
			
				false
			
		
	

 

你可能感兴趣的:(关于springcloud中eureka server端配置的一些总结)