| | |
| | | |
| | | @Scheduled(cron = "0 0/1 * * * ? ") |
| | | public void baseDataUpdate() { |
| | | log.info("基础数据更新任务"); |
| | | // 请求价格等数据 |
| | | String result = getUrlResponse("https://api2.chiaexplorer.com/blockchainSummary"); |
| | | // 每t预计收益 |
| | |
| | | */ |
| | | @Scheduled(cron = "0 0/1 * * * ?") |
| | | public void orderWork() { |
| | | log.info("产品生效任务"); |
| | | QueryWrapper<YdOrderEntity> objectQueryWrapper = new QueryWrapper<>(); |
| | | objectQueryWrapper.eq("state",YdOrderEntity.ORDER_STATE_READY); |
| | | List<YdOrderEntity> ydOrderEntities = ydOrderDao.selectList(objectQueryWrapper); |
| | |
| | | <configuration> |
| | | <contextName>logback</contextName> |
| | | <!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 --> |
| | | <property name="log.path" value="hibit/logs" /> |
| | | <property name="log.path" value="yunding/logs" /> |
| | | <!-- <springProperty scope="context" name="log.path" source="logging.file.path"/>--> |
| | | |
| | | <!-- 彩色日志 --> |