| | |
| | | **/ |
| | | @Slf4j |
| | | @Component |
| | | @ConditionalOnProperty(prefix = "app", name = "day-line", havingValue = "true") |
| | | //@ConditionalOnProperty(prefix = "app", name = "day-line", havingValue = "true") |
| | | public class DayLineDataUpdateJob { |
| | | |
| | | @Resource |
| | |
| | | /** |
| | | * 更新快捷充值超时状态 |
| | | */ |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | //@Scheduled(cron = "0/5 * * * * ? ") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void updateChargeUsdt() { |
| | | try { |
| | |
| | | /** |
| | | * 持仓费计算 |
| | | */ |
| | | @Scheduled(cron = "0 0 0 */1 * ?") |
| | | //@Scheduled(cron = "0 0 0 */1 * ?") |
| | | public void updateDoingPrice() { |
| | | log.info("#持仓费计算#"); |
| | | try { |
| | |
| | | kline-update-job: false |
| | | newest-price-update-job: true |
| | | #日线 该任务不能与最新价处于同一个服务器 |
| | | trade: true |
| | | exchange-trade: true |
| | | day-line: false |
| | | other-job: true |
| | | loop-job: true |
| | |
| | | profiles: |
| | | active: dev |
| | | datasource: |
| | | url: jdbc:mysql://rm-bp1i2g5rg5dubo9s40o.mysql.rds.aliyuncs.com:3306/db_roc?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: roc_user |
| | | password: roc123pasd!@ |
| | | url: jdbc:mysql://121.196.181.91:3306/db_cpv?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: cpv_user |
| | | password: cpv123456 |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | |
| | | ## Redis数据库索引(默认为0) |
| | | database: 1 |
| | | ## Redis服务器地址 |
| | | host: 47.114.114.219 |
| | | host: 121.196.181.91 |
| | | ## Redis服务器连接端口 |
| | | port: 6379 |
| | | ## Redis服务器连接密码(默认为空) |
| | | password: biyi123 |
| | | password: cpv1qaz!@# |
| | | jedis: |
| | | pool: |
| | | ## 连接池最大连接数(使用负值表示没有限制) |
| | |
| | | ## 连接超时时间(毫秒) |
| | | timeout: 30000 |
| | | rabbitmq: |
| | | host: 47.114.114.219 |
| | | host: 121.196.181.91 |
| | | port: 5672 |
| | | username: roc_user |
| | | password: roc123456 |
| | | username: cpv_user |
| | | password: cpv123456 |
| | | publisher-confirm-type: correlated |
| | | |
| | | |
| | |
| | | redis_expire: 3000 |
| | | kline-update-job: false |
| | | newest-price-update-job: false |
| | | #日线 该任务不能与最新价处于同一个服务器 |
| | | exchange-trade: false |
| | | day-line: false |
| | | other-job: false |
| | |
| | | |
| | | spring: |
| | | profiles: |
| | | active: prod |
| | | active: prodapp |
| | | datasource: |
| | | url: jdbc:mysql://rm-bp151tw8er79ig9kb5o.mysql.rds.aliyuncs.com:3306/db_biue?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: ctcoin_data |