wuchunfu commented on code in PR #8984: URL: https://github.com/apache/seatunnel/pull/8984#discussion_r2015531517
########## docs/en/concept/config.md: ########## @@ -335,6 +335,91 @@ sink { - For dynamic parameters, you can use the following format: `-i date=$(date +"%Y%m%d")`. - Cannot use specified system reserved characters; they will not be replaced by `-i`, such as: `${database_name}`, `${schema_name}`, `${table_name}`, `${schema_full_name}`, `${table_full_name}`, `${primary_key}`, `${unique_key}`, `${field_names}`. For details, please refer to [Sink Parameter Placeholders](sink-options-placeholders.md). + +## Configuration References + +In the configuration file, we can define some common configuration information and directly reference it in the Job configuration, thereby reusing the same configuration. This is commonly applied to the reuse of connection information and the independence of variable configuration files for development and production environments, greatly improving the maintainability of the configuration. + +### reference examples + +ref.conf +```hocon +# 定义 MySQL 连接配置 +mysql_prod { + url = "jdbc:mysql://192.168.1.19:3306/test" + driver = "com.mysql.cj.jdbc.Driver" + connection_check_timeout_sec = 100 + user = "root" + password = "111111" + fetch_size = 10000 + query="select * from not_exist" +} + +# 定义 Kafka 连接配置 +kafka_test { Review Comment: ditto -- 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. To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org