zoukankan      html  css  js  c++  java
  • 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>
    
    世界上所有的不公平都是由于当事人能力不足造成的.
  • 相关阅读:
    8.16
    8.6 总结
    Educational Codeforces Round 45 (Rated for Div. 2)
    Codeforces Round #487 (Div. 2)
    Codeforces Round #485
    codeforces Avito Code Challenge 2018
    MySQL索引知识面试题
    使用多线程优化复杂逻辑以及数据量多处理
    elasticsearch 和Ik 以及 logstash 同步数据库数据
    linux 安装elasticsearch步骤以及入的坑
  • 原文地址:https://www.cnblogs.com/javayida/p/13347045.html
Copyright © 2011-2022 走看看