diff --git a/executor/src/main/resources/application.yml.example b/executor/src/main/resources/application.yml.example index 635550e..1c389ec 100644 --- a/executor/src/main/resources/application.yml.example +++ b/executor/src/main/resources/application.yml.example @@ -14,6 +14,7 @@ spring: replication_factor: 1 partitions: 3 topic_new_email_remind: topic-gitlink-new-email-remind + consumer: bootstrap_servers: kafka1:9092,kafka2:9092 client_id: gitlink_consumer @@ -26,12 +27,10 @@ spring: topic_email: topic-gitlink-email topic_new_email_remind: topic-gitlink-new-email-remind enable-auto-commit: true - #自动提交的时间间隔 auto-commit-interval: 1S + listener: - # 消费线程数 concurrency: 3 - # 提交模式 ack-mode: record redis: @@ -47,10 +46,8 @@ spring: timeout: 1000 datasource: - # 配置数据源类型 driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://mysql:3306/gitlink_notification?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2B8&allowMultiQueries=true&useSSL=false username: gitlink password: giTlinK0^827 -#ip白名单列表,多个ip用逗号隔开,允许所有用*号 white-list: '*' \ No newline at end of file diff --git a/executor/src/main/resources/mail.properties b/executor/src/main/resources/mail.properties.example similarity index 100% rename from executor/src/main/resources/mail.properties rename to executor/src/main/resources/mail.properties.example diff --git a/reader/src/main/resources/application.yml.example b/reader/src/main/resources/application.yml.example index 16e91a0..e828e2e 100644 --- a/reader/src/main/resources/application.yml.example +++ b/reader/src/main/resources/application.yml.example @@ -7,24 +7,15 @@ logging: spring: redis: - # Redis数据库索引(默认为0) database: 0 - # Redis服务器地址 host: redis - # Redis服务器连接端口 port: 6379 - # Redis服务器连接密码(默认为空) password: pool: - # 连接池最大连接数(使用负值表示没有限制) max-active: 200 - # 连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1 - # 连接池中的最大空闲连接 max-idle: 10 - # 连接池中的最小空闲连接 min-idle: 0 - # 连接超时时间(毫秒) timeout: 1000 kafka: @@ -35,11 +26,9 @@ spring: batch_size: 16384 datasource: - # 配置数据源类型 driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://mysql:3306/gitlink_notification?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2B8&allowMultiQueries=true&useSSL=false username: gitlink password: giTlinK0^827 -#ip白名单列表,多个ip用逗号隔开,允许所有用*号 white-list: '*' \ No newline at end of file diff --git a/reader/src/main/resources/mail.properties b/reader/src/main/resources/mail.properties.example similarity index 100% rename from reader/src/main/resources/mail.properties rename to reader/src/main/resources/mail.properties.example diff --git a/writer/src/main/resources/application.yml.example b/writer/src/main/resources/application.yml.example index d72ad0e..0d6bf72 100644 --- a/writer/src/main/resources/application.yml.example +++ b/writer/src/main/resources/application.yml.example @@ -30,10 +30,8 @@ spring: datasource: - # 配置数据源类型 driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://mysql:3306/gitlink_notification?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2B8&allowMultiQueries=true&useSSL=false username: gitlink password: giTlinK0^827 -#ip白名单列表,多个ip用逗号隔开,允许所有用*号 white-list: '*' \ No newline at end of file diff --git a/writer/src/main/resources/mail.properties b/writer/src/main/resources/mail.properties.example similarity index 100% rename from writer/src/main/resources/mail.properties rename to writer/src/main/resources/mail.properties.example