今天使用idea将项目打包运行,但是启动不起来,一查日志发现了一些奇奇怪怪的错误
报错显示Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
java.lang.NoClassDefFoundError:javax/xml/bind/annotation/XmlType
解决加入依赖
javax.xml.bind jaxb-api 2.2.12
可能原因: 大概是jdk版本引起的问题,安装这个依赖即可,初学者不求甚解
参考链接https://blog.csdn.net/returnzhang/article/details/80864896



