在谷粒商城项目中,renren-fast服务起不来,报错:
Caused by: org.quartz.SchedulerConfigException: DataSource name set
或
Error creating bean with name 'scheduleJobController': Unsatisf
以及版本冲突异常等等;
- 这是因为renren-fast的Springboot版本和导入的common依赖中的Spring-clound版本不对应导致的问题,但是要改版本的话,其他的服务的东西也要跟着改,这样会很费力,我们只需在启动的配置文件中添加上这样一条配置即可:
cloud:
compatibility-verifier:
enabled: false
这条配置的意思是跳过版本依赖的检查,自然就不会报错了;