jar包运行报错,unable to satrt embedded tomcat

这是一个微服务,在一个有前端页面的模块打成jar包之后,cmd运行报错:exception encountered during context initialization :cancel ling refresh attempt; nested exception is "org.spring framework.boot.web.server.webserver exception: unable to satrt embedded tomcat"
前端模板都是依赖的thymeleaf模板

img


这是一些报错,可能还有其它的,我没有看见的。
这个项目,在本地 Idea上启动,运行时,不报错。能跑通的。

img

可以参考参考这个哟。根本原因是调用了抽象,

https://blog.csdn.net/xiangqianzou_liu/article/details/106839913