SpringBoot 项目启动报错 Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘***Impl’: Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class
今天发布项目的时候发现一个问题。本地项目启动没问题, jenkin也一直都是成功,但是控制台一直都是报错
完整错误代码
之前把重心一直放在impl 的文件了,后来听同事说他引用了jd api 两个api 版本名字都一样
看了服务器里面的lib目录 长这样,(服务器的这个不是我配置的我只是看到log 目录有同级的lib目录就进来瞧瞧。)
发现因为是先引用了淘宝的api 然后又引用了jd的api , jp的覆盖了淘宝的所以才出现现在的情况
解决方案
更换一个jar包的版本和目录名,(但是我感觉更换目录名 没用,)
更换后重新运行 jks 成功了。
本来我想看看本地 target目录里面的lib目录里的文件, 但好像发现 SpringBoot 项目 里面好像 没有MVC项目一样 lib 目录 ???
好吧 我boot掌握的不好,想问一下有没有大佬知道。boot 里 pom.xml里面引用的jar包都跑哪去了、