现在公司自己开发的一个底层jar中的一个bean,在启动时需要注入的是宿主工程上的一个bean,用idea启动说找不到该类型的bean,但如果我将他打成运行的war包,却又可以成功。
报错:
Field opuRsNetTmnMapper in com.agcloud.agx.common.service.impl.AgxRsTmnServiceImpl required a bean of type 'com.agcloud.opus.common.mapper.OpuRsNetTmnMapper' that could not be found.
Action:
Consider defining a bean of type 'com.agcloud.opus.common.mapper.OpuRsNetTmnMapper' in your configuration.
https://blog.csdn.net/zjh_746140129/article/details/80156223