springboot 运行出现错误 Unable to start ServletWebServerApplicationContext due to missing ServletWebServer

缘由是我将springboot启动类换到了另一个方法中spring

出现了一个异常   springboot

 

后来发现由于我换了类可是忘记了换类名因此才报错spa

@ComponentScan
@EnableAutoConfiguration
public class TestApplication {

    public static void main(String[] args){
        SpringApplication.run(TestApplication.class,args);

    }

}
相关文章
相关标签/搜索