首页 > 其他分享 >SpringBoot启动项目失败但不报错

SpringBoot启动项目失败但不报错

时间:2023-08-09 16:37:37浏览次数:33  
标签:__ SpringbootDemoApplication 14232 boot --- 失败 报错 ___ SpringBoot

新建的SpringBoot项目,点击启动,项目没有启动成功,但是不报错。如下:


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.7.4)

2022-12-13 10:18:52.858  INFO 14232 --- [           main] c.k.s.SpringbootDemoApplication          : Starting SpringbootDemoApplication using Java 1.8.0_202 on 2F-KF03 with PID 14232 (D:\i-word\springboot-demo\target\classes started by Administrator in D:\i-word\springboot-demo)
2022-12-13 10:18:52.860  INFO 14232 --- [           main] c.k.s.SpringbootDemoApplication          : No active profile set, falling back to 1 default profile: "default"
2022-12-13 10:18:53.143  INFO 14232 --- [           main] c.k.s.SpringbootDemoApplication          : Started SpringbootDemoApplication in 0.496 seconds (JVM running for 0.992)

Process finished with exit code 0

解决方案:

博主遇到的是没有引入spring-boot-starter-web所导致,引入对应pom文件即可解决问题

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




标签:__,SpringbootDemoApplication,14232,boot,---,失败,报错,___,SpringBoot
From: https://blog.51cto.com/u_16181287/7022002

相关文章

  • SpringBoot源码实用场景:SpringBoot 3.1.0 环境下 PageHelper 1.4.0不生效问题排查
    1、技术栈:JDK17+SpringBoot3.1.0+PageHelper1.4.01<?xmlversion="1.0"encoding="UTF-8"?>2<project...>3<parent>4<groupId>org.springframework.boot</groupId>5<arti......
  • Spring Secriuty登录失败错误状态999重定向302
    原因是login.html登录页面有不能加载的静态资源,找出来去掉就好了,比如bootstrap.min.css环境使用SpringBootSecurity3做一个登录功能,使用了一个教程提供的HTML登录页面,代码如下SpringSecurity配置,自定义了登录页,资源都做了放行,能正常加载,使用数据库认证,正常查出@Configu......
  • Arduino IDE踩坑记——自动编译已删除的文件导致报错
    前段时间因为手头上有个小项目需要基于esp8266开发,所以用上了以简单无脑配置著称的ArduinoIDE,刚开始尝试的时候,在项目目录下创建了几个源文件,ArduinoIDE也很贴心地自动导入了,写了几行之后,觉得这样写不太对,于是又删掉了这几个源文件。在ArduinoIDE的界面中这几个源文件也消失了......
  • springboot设置log4j2无效
     log4j2需要在资源文件中正确的写法:错误的写法:下面写法会无效的会使用springboot本身的日志 ......
  • 游记(?)—ACM班与John班申请失败经历+经验
    本来这种东西应该发在某社区上的。但是考虑种种原因还是算了吧1.有活人存在的某社区对社恐不友好2.某些发言在高年级学长看来可能非常智障3.避免增加黑历史话说学校似乎没有要求我们对这些东西保密?题外话,感觉下文透露的个人信息完全足够被盒了简要介绍我的情况:某弱省考生,工......
  • SpringBoot - Web项目起步
    环境搭建开发规范1开发规范2.1开发规范2.2开发规范2.3开发流程......
  • allure 系统有权限不能运行报错的解决方法
    当出现"FileC:\Users\Administrator\AppData\Roaming\npm\allure.ps1cannotbeloadedbecauserunningscriptsisdisabledonthissystem"的错误消息时,表示你的系统禁止执行脚本文件。为了解决这个问题,你可以尝试执行以下步骤:以管理员身份运行命令提示符或PowerShell:右......
  • springboot不使用端口的方式启动
    SpringBoot项目不占用端口启动现在很多互联网公司或者项目,都使用SpringBoot+SpringCloud,以微服务的形式来提供后台服务。而且既然是微服务,所涉及到的项目就会很多,服务器端口资源就会相当紧张。而且,其实有些项目,如定时任务等,是不需要对外提供服务,也就不需要占用服务器端口的。......
  • 二、SpringBoot配置
    SpringBoot配置文件springBoot配置一般有application.properties、application.yml、application.yaml优先级:properties>yml>yamlYAML:基本语法大小写敏感数据值前必须有空格作为分隔符使用缩进表示层级关系缩进时不允许使用Tab键,只允许使用空格(各个系统Tab键生成的缩进对......
  • 三、SpringBoot整合Mybatis
    创建项目实现查询所有功能创建数据库连接数据库在resources文件夹中创建application.yml写入数据库连接参数注意文件结构编写实体类编写DAO层接口编写Service接口及实现类编写Controller层......