SpringBoot | 启动异常 | 显示bulid success 无 error信息

    

    可能原因是没有添加 web 依赖,检查pom里面是否有web

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

原文地址:https://www.cnblogs.com/jj81/p/9966010.html

时间: 2024-07-31 11:07:04

SpringBoot | 启动异常 | 显示bulid success 无 error信息的相关文章

记一次Springboot启动异常

启动Springboot项目报以下异常: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing S

解决spring-boot启动异常Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean

第一种: 需要在主类头加上  @EnableAutoConfiguration 第二种: pom文件是否加了 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.sprin

Spring-Boot启动异常NoClassDefFoundError: javax/servlet/Servlet

解决方案: 1. 查看pom包中是否包含如下依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>compile</scope> </dependency> 2.   如果已经包含,查看<scope>provided&

maven中使用tomcat插件启动,显示build success但无法继续启动的解决方法

在tomcat插件配置中加一行 <ignorePackaging>true</ignorePackaging> 告诉tomcat忽略是否有war包 <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <configuration> <

Mac下Mysql启动异常[&quot;ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through socket &#39;/tmp/mysql.sock&#39; (2)&quot;]

在mac下使用brew安装mysql,之前没有使用过,今天启动的时候发现启动不了 huijundeMacBook-Pro:bin huijunzhang$ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 查看mysql的安装位置: huijundeMacBook-Pro:bin huijunzhang$ which mysql /usr/local

Springboot 启动时Bean初始化,启动异常-Assert.isTrue(condition,message) 报错

Springboot 启动时Bean初始化启动异常Assert.isTrue(condition,message) 报错,如果 condition为false 则会出现 java.lang.IllegalArgumentException: message, org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'XXXXXX' defined in class path re

springboot启动报错:&quot;Error starting ApplicationContext. To display the conditions report re-run your application with &#39;debug&#39; enabled.&quot;

报错内容 java.lang.Object.wait(Native Method)java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:41)2019-02-14 14:58:00.326 INFO 17688 --- [ main] Condition

Zookeep启动异常:Error contacting service. It is probably not running.

Zookeep安装启动异常    异常提示: [[email protected] bin]# ./zkServer.sh status JMX enabled by default Using config: /usr/local/zk/bin/../conf/zoo.cfg Error contacting service. It is probably not running 解决方案: 网上问题答案有许多种,一一归纳: 1. zoo.cfg配置文件中指定目录却没有创建! 创建相应目录即可

spring-boot 启动时候 出现异常:The bean &#39;xxx&#39; could not be injected as a &#39;xx.xxxx&#39; because it is a JDK dynamic proxy that implements:

The bean 'xxxService' could not be injected as a 'AaaXxxService' because it is a JDK dynamic proxy that implements: Action: Consider injecting the bean as one of its interfaces or forcing the use of CGLib-based proxies by setting proxyTargetClass=tru