今天楼主在做一个maven+springBoot的简单项目的时候,发现报了

Unable to start embedded container; nested exception is org.springframework.context.Appl....的错误,

经过上网查找,得到解决方案之一,现在分享给大家:

 springBoot报错Unable to start embedded container; nested exception is org.springframework.context.ApplspringBoot报错Unable to start embedded container; nested exception is org.springframework.context.Appl


修改后:

springBoot报错Unable to start embedded container; nested exception is org.springframework.context.Appl

总结:出现这个错误的原因是SpringApplication.run里面的.class文件的名字没有和本类的变量名相同,改过来即可

相关文章:

  • 2021-07-06
  • 2021-05-21
  • 2021-08-22
  • 2022-01-11
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-19
  • 2022-01-21
  • 2021-04-12
  • 2022-12-23
  • 2021-09-16
  • 2021-07-07
  • 2021-07-09
相关资源
相似解决方案