eureka报错Unable to start web server; nested exception is org.springframework.boot.web

刚开始学习eureka,按照教程来,不知道为啥一直报这个错误,
Unable to start web server; nested exception is org.springframework.boot.web
然后大佬指点迷津,spring boot 的包有问题,然后就到本地仓库去找到
apache-maven-3.3.9\localRepository\org\springframework\boot\spring-boot
版本是
在这里插入图片描述

找到删掉重新下载一次,又可以了…下载最好从阿里私服下载,远程仓库很慢:我的pom里面配置的阿里私服:

	<repositories>
		<repository>
			<id>public</id>
			<name>aliyun nexus</name>
			<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
		</repository>
	</repositories>

	<pluginRepositories>
		<pluginRepository>
			<id>public</id>
			<name>aliyun nexus</name>
			<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>

有时候阿里私服下载的jar会报错,导致项目编译不通过.又换成原本的spring.io的:重新打包又可以了…

	<repositories>
		<repository>
			<id>spring-snapshots</id>
			<name>Spring Snapshots</name>
			<url>https://repo.spring.io/snapshot</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>spring-milestones</id>
			<name>Spring Milestones</name>
			<url>https://repo.spring.io/milestone</url>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>spring-snapshots</id>
			<name>Spring Snapshots</name>
			<url>https://repo.spring.io/snapshot</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</pluginRepository>
		<pluginRepository>
			<id>spring-milestones</id>
			<name>Spring Milestones</name>
			<url>https://repo.spring.io/milestone</url>
		</pluginRepository>
	</pluginRepositories>
posted @ 2019-03-14 21:45  你就像甜甜的益达  阅读(3388)  评论(0编辑  收藏  举报