SpringBoot多数据源启动项目报错:
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
sysJobController (field private com.comet.service.ISysJobService com.comet.controller.SysJobController.sysJobService)
↓
sysJobServiceImpl (field private com.comet.mapper.SysJobMapper com.comet.service.impl.SysJobServiceImpl.sysJobMapper)
↓
sysJobMapper defined in file [G:\IdeaProject\comet\comet-quartz\target\classes\com\comet\mapper\SysJobMapper.class]
↓
sqlSessionFactory defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]
┌─────┐
| dynamicDataSource defined in class path resource [com/comet/config/DataSourceConfig.class]
↑ ↓
| masterDataSource defined in class path resource [com/comet/config/DataSourceConfig.class]
↑ ↓
| org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerInvoker
└─────┘
解决方式:
在启动类添加
(exclude = { DataSourceAutoConfiguration.class })
你好,请问您的最新文章王者荣耀战绩查询那个,隐藏战绩能查询到吗?