Commit b65b788a by 高晓磊

定时任务添加bean

parent 8be650b3
......@@ -8,6 +8,8 @@ import com.xyst.dinas.price.dao.PriceAdjustmentDao;
import com.xyst.dinas.price.internal.dao.PriceAdjustmentDaoImpl;
import com.xyst.dinas.price.internal.service.PriceAdjustmentServiceImpl;
import com.xyst.dinas.price.service.PriceAdjustmentService;
import com.xyst.dinas.price.task.PriceAdjustmentStatusSchedule;
import com.xyst.dinas.price.task.PriceAdjustmentStatusTask;
import com.xyst.dinas.price.web.PriceAdjustmentController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
......@@ -32,8 +34,6 @@ public class PriceAdjustmentConfiguration {
new ClassPathResource("/com/xyst/dinas/price/datamodel/PriceAdjustment.jmx", KClass.class));
}
//PriceAdjustmentDaoImpl相关bean配置
@Bean
public PriceAdjustmentDao priceAdjustmentDao() {
......@@ -49,6 +49,15 @@ public class PriceAdjustmentConfiguration {
return new PriceAdjustmentController();
}
@Bean
public PriceAdjustmentStatusSchedule priceAdjustmentStatusSchedule(){
return new PriceAdjustmentStatusSchedule();
}
@Bean
public PriceAdjustmentStatusTask priceAdjustmentStatusTask(){
return new PriceAdjustmentStatusTask();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment