| src/main/java/cc/mrbird/febs/job/ChainRunner.java | ●●●●● patch | view | raw | blame | history | |
| src/main/resources/application-chain.yml | ●●●●● patch | view | raw | blame | history | |
| src/main/resources/application-dev.yml | ●●●●● patch | view | raw | blame | history |
src/main/java/cc/mrbird/febs/job/ChainRunner.java
@@ -9,12 +9,14 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Component; import java.math.BigInteger; @Slf4j @Component @ConditionalOnProperty(prefix = "system", name = "chain-listener", havingValue = "true") public class ChainRunner implements ApplicationRunner { src/main/resources/application-chain.yml
New file @@ -0,0 +1,61 @@ spring: datasource: dynamic: # 是否开启 SQL日志输出,生产环境建议关闭,有性能损耗 p6spy: true hikari: connection-timeout: 30000 max-lifetime: 1800000 max-pool-size: 15 min-idle: 5 connection-test-query: select 1 pool-name: FebsHikariCP # 配置默认数据源 primary: base datasource: # 数据源-1,名称为 base base: username: ct_test password: 123456 driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://120.27.238.55:3406/db_tfc?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8 redis: # Redis数据库索引(默认为 0) database: 9 # Redis服务器地址 host: 120.27.238.55 # Redis服务器连接端口 port: 6479 # Redis 密码 password: d3y6dsdl;f.327 lettuce: pool: # 连接池中的最小空闲连接 min-idle: 8 # 连接池中的最大空闲连接 max-idle: 500 # 连接池最大连接数(使用负值表示没有限制) max-active: 2000 # 连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: 10000 # 连接超时时间(毫秒) timeout: 5000 rabbitmq: host: 120.27.238.55 port: 5672 username: ct_rabbit password: 123456 publisher-confirm-type: correlated system: online-transfer: false chain-listener: true trade-job: false static: resource: url: http://120.27.238.55:8187/uploadeFile/ path: /home/javaweb/webresource/gfadapp/h5/uploadeFile/ src/main/resources/application-dev.yml
@@ -50,7 +50,7 @@ system: online-transfer: false chain-listener: true chain-listener: false trade-job: false