skaic commented on issue #1865: URL: https://github.com/apache/shardingsphere-elasticjob/issues/1865#issuecomment-836478312
you can register a bean of TracingConfiguration\<DataSource\> like this: ``` @Setter @Configuration @ConfigurationProperties(prefix = "elasticjob.tracing.datasource") public class ElasticJobTracingConfiguration { private String driverClassName; private String url; private String username; private String password; @Bean public TracingConfiguration<DataSource> myTracingConfiguration() { BasicDataSource dataSource = new BasicDataSource(); dataSource.setDriverClassName(driverClassName); dataSource.setUrl(url); dataSource.setUsername(username); dataSource.setPassword(password); return new TracingConfiguration<>("RDB", dataSource); } } ``` and ``` elasticjob: tracing: datasource: driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql://xxxx/databases?useUnicode=true&characterEncoding=UTF-8&useSSL=false username: root password: xxxx ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org