nested exception is org.springframework.context.ApplicationContextException: Unable to start Servlet
Posted liruilong
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nested exception is org.springframework.context.ApplicationContextException: Unable to start Servlet相关的知识,希望对你有一定的参考价值。
近期在学springboot,学的时候遇到这个错,网上查了好多,改了不行,后来发现自己的配置类没有加@SpringBootApplication注解
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
2019-10-03 21:22:36.066 ERROR 6408 --- [ main] o.s.boot.SpringApplication : Application run failed
package com.example.demo.freemarker; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * @Description : * @Author: * @Date: 2019/10/3 21:13 */ @SpringBootApplication public class AppConfig public static void main(String[] args) SpringApplication.run(AppConfig.class,args);
nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
以上是关于nested exception is org.springframework.context.ApplicationContextException: Unable to start Servlet的主要内容,如果未能解决你的问题,请参考以下文章
nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link fai
nested exception is io.lettuce.core.RedisCommandTimeoutException
nested exception is io.lettuce.core.RedisCommandTimeoutException
nested exception is org.apache.ibatis.reflection.ReflectionExceptio
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jacks
HTTP Status 500 - Request processing failed; nested exception is org.hibernate.exception.GenericJDBC