exclude KafkaAutoConfiguration, remove redundant properties
This commit is contained in:
parent
b28129086b
commit
449392e171
2 changed files with 2 additions and 20 deletions
|
|
@ -2,6 +2,7 @@ package ru.micord.ervu.av;
|
|||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration;
|
||||
import org.springframework.retry.annotation.EnableRetry;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
|
||||
|
|
@ -10,7 +11,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|||
*/
|
||||
@EnableRetry
|
||||
@EnableTransactionManagement
|
||||
@SpringBootApplication
|
||||
@SpringBootApplication(exclude = KafkaAutoConfiguration.class)
|
||||
public class FileUploadApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
|
|||
|
|
@ -1,15 +1,6 @@
|
|||
server.servlet.context-path=/av
|
||||
|
||||
# spring kafka default beans properties begin ->
|
||||
# kafka out admin bean settings
|
||||
spring.kafka.admin.security.protocol=SASL_PLAINTEXT
|
||||
#login password to set
|
||||
spring.kafka.admin.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="${OUT_KAFKA_USERNAME}" password="${OUT_KAFKA_PASSWORD}";
|
||||
spring.kafka.admin.properties.sasl.mechanism=SCRAM-SHA-256
|
||||
# kafka out servers for admin bean
|
||||
#host1:port1, host2:port2
|
||||
spring.kafka.bootstrap.servers=${ERVU_KAFKA_BOOTSTRAP_SERVERS}
|
||||
#
|
||||
# kafka in consumer (with possibility for default bean)
|
||||
#host1:port1, host2:port2
|
||||
spring.kafka.consumer.bootstrap.servers=${AV_KAFKA_BOOTSTRAP_SERVERS}
|
||||
|
|
@ -30,12 +21,6 @@ spring.kafka.producer.security.protocol=${ERVU_KAFKA_SECURITY_PROTOCOL:SASL_PLAI
|
|||
#login password to set
|
||||
spring.kafka.producer.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="${ERVU_KAFKA_USERNAME}" password="${ERVU_KAFKA_PASSWORD}";
|
||||
spring.kafka.producer.properties.sasl.mechanism=${ERVU_KAFKA_SASL_MECHANISM:SCRAM-SHA-256}
|
||||
#
|
||||
# kafka out general
|
||||
spring.kafka.properties.security.protocol=SASL_PLAINTEXT
|
||||
#login password to set
|
||||
spring.kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="${ERVU_KAFKA_USERNAME}" password="${ERVU_KAFKA_PASSWORD}";
|
||||
spring.kafka.properties.sasl.mechanism=SCRAM-SHA-256
|
||||
# spring kafka default beans properties <- end
|
||||
#
|
||||
# kafka out consumer (not for default bean creation by spring)
|
||||
|
|
@ -72,10 +57,6 @@ s3.out.bucket_name=${S3_OUT_BUCKET_NAME}
|
|||
# spring jooq dsl bean properties begin ->
|
||||
spring.jooq.sql-dialect=Postgres
|
||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
#host:port/database_name
|
||||
spring.datasource.url=${SPRING_DATASOURCE_URL}
|
||||
spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
|
||||
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}
|
||||
# spring jooq dsl bean properties <- end
|
||||
|
||||
# endpoints management
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue