spring Boot 报错Failed to introspect Class [xxx] from ClassLoader
部署到服务器但没有配置maven插件问题原因就是:spring在加载bean时,找不到对应的class文件解决方案:<plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId&
·
因为之前把redis单打成jar包放入一个项目,然后该项目的jar包在cmd命令行运行报错,该问题主要原因是:因为redis包是外部包,spring在加载bean时,找不到对应的class文件,
部署到服务器但没有配置maven插件
解决方案:
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<mainClass>com.power.CrbDockApplication</mainClass>
<---------添加改行--------->
<includeSystemScope>true</includeSystemScope>
<---------添加改行--------->
</configuration>
</plugin>
</plugins>
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)