• 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.9localRepositoryorgspringframeworkootspring-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>
    
    世界上所有的不公平都是由于当事人能力不足造成的.
  • 相关阅读:
    【洛谷 1144】最短路计数
    【洛谷 1608】路径统计
    【洛谷 1491】集合位置
    【洛谷 3110】驮运 Piggy Back
    【洛谷 1734】最大约束和
    【洛谷 1910】L国的战斗之间谍
    【洛谷 1048】采药
    【洛谷 1186】玛丽卡
    GeoServer(地图服务器)
    git cherry-pick 教程
  • 原文地址:https://www.cnblogs.com/javayida/p/13347045.html
Copyright © 2020-2023  润新知