Referenced file contains errors (http://www.springframework.org/schema/conte

Referenced file contains errors (http://www.springframework.org/schema/conte

当从外部导入web项目的时候,出现了这种错误,按照网上之前搜的方法并没有解决,然后发现新导入的项目没有jre
错误原因

解决办法:选中项目右击,—->Build path ——->configure Build path——>add variadle

注意:是 add variadle是添加新的jdk,图中圈错了

解决办法

然后问题解决,欧耶!

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据提供的引用内容来看,问题出现在启动嵌入式Tomcat时。错误信息是"org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat"。原因是在应用程序的依赖中引用了Jackson相关的包,但是没有引用完整。你可以通过添加完整的依赖来解决这个问题。解决方案中提到添加以下依赖: ``` <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.13.3</version> <scope>compile</scope> </dependency> ``` 同时,你还需要在这个依赖中添加排除规则,以防止冲突: ``` <exclusions> <exclusion> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> </exclusion> </exclusions> ``` 另外,还需要添加Jackson Annotations的依赖: ``` <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>2.9.8</version> </dependency> ``` 这样就可以解决引起Tomcat启动失败的问题了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [【图文详解】SpringBoot启动报错:Unable to start web server; nested exception is org.springframework...](https://blog.csdn.net/weixin_42168713/article/details/126407440)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *3* [搭建nacos集群启动时,报错Unable to start web... nested exception is org.springframework.boot.web.server](https://blog.csdn.net/qq_36220273/article/details/126786824)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值