Browse Source

fix spring bean not found.

deason 6 years ago
parent
commit
22519984eb

+ 1 - 1
examcloud-task-service/src/main/java/cn/com/qmth/examcloud/task/service/impl/ReportsComputeServiceImpl.java

@@ -53,7 +53,7 @@ public class ReportsComputeServiceImpl implements ReportsComputeService {
 	@Autowired
 	private ProjectCloudService projectCloudService;
 
-	@Autowired
+//	@Autowired
 	private ExamStudentDataCloudService examStudentDataCloudService;
 	
 	@Autowired

+ 1 - 1
examcloud-task-starter/src/main/java/cn/com/qmth/examcloud/task/starter/TaskApp.java

@@ -23,7 +23,7 @@ import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
 @EnableTransactionManagement
 @EnableEurekaClient
 @EnableDiscoveryClient
-@ComponentScan(basePackages = {"cn.com.qmth"})
+@ComponentScan(basePackages = {"cn.com.qmth","org.examcloud"})
 @EntityScan(basePackages = {"cn.com.qmth.examcloud.task.dao.entity"})
 @EnableJpaRepositories(basePackages = {"cn.com.qmth.examcloud.task.dao"})
 @EnableAutoConfiguration(exclude = {MultipartAutoConfiguration.class})