springboot:Application run failed解决

往pom.xml种加入两段代码

1.在properties标签下面加上:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.5.RELEASE</version>
</parent>

2.在dependencies标签里面加入一个dependency标签

   <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
   </dependency>

结果显示:Application run failed,在浏览器中输入localhost:8080也没有反应

问题在于第一步,2.0.5.RELEASE改成2.2.12.RELEASE即可

  • 1
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]和\[2\]中提到了应用程序运行失败的错误信息。错误信息显示了一些可能导致应用程序运行失败的原因。其中一个可能的原因是"Unsupported class file major version 61",这意味着应用程序使用了不受支持的Java类文件版本。这可能是由于使用了不兼容的Java版本或编译器导致的。要解决这个问题,您可以尝试使用与您的Java版本兼容的类文件版本,或者更新您的Java版本。 引用\[3\]中提到了一种解决方法,即在@SpringBootApplication注解中排除一些自动配置类。然而,这种方法可能不适用于所有情况。当遇到问题时,最好多读一读错误信息,以便更好地理解问题的根本原因,并找到适合您情况的解决方案。 #### 引用[.reference_title] - *1* [application run failed如何解决](https://blog.csdn.net/gfeilhybcl/article/details/128425646)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [Springboot启动报错[ main] o.s.boot.SpringApplication: Application run failed(佷有可能是版本问题)](https://blog.csdn.net/weixin_45645926/article/details/122894572)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值