File tree Expand file tree Collapse file tree 4 files changed +6
-82
lines changed
kotlin/com/softeno/template/app/kafka/config Expand file tree Collapse file tree 4 files changed +6
-82
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ class KafkaConfig {
3232 fun consumerFactory () = DefaultKafkaConsumerFactory <String , JsonNode >(consumerProps)
3333
3434 val consumerProps = mapOf (
35- ConsumerConfig .BOOTSTRAP_SERVERS_CONFIG to " localhost:9094" ,
36- ConsumerConfig .GROUP_ID_CONFIG to " sample-group-jvm-jpa" ,
3735 ConsumerConfig .KEY_DESERIALIZER_CLASS_CONFIG to StringDeserializer ::class .java,
3836 ConsumerConfig .VALUE_DESERIALIZER_CLASS_CONFIG to JsonDeserializer ::class .java,
3937 JsonDeserializer .USE_TYPE_INFO_HEADERS to false ,
@@ -46,7 +44,6 @@ class KafkaConfig {
4644 fun producerFactory () = DefaultKafkaProducerFactory <String , KafkaMessage >(senderProps)
4745
4846 val senderProps = mapOf (
49- ProducerConfig .BOOTSTRAP_SERVERS_CONFIG to " localhost:9094" ,
5047 ProducerConfig .LINGER_MS_CONFIG to 10 ,
5148 ProducerConfig .KEY_SERIALIZER_CLASS_CONFIG to StringSerializer ::class .java,
5249 ProducerConfig .VALUE_SERIALIZER_CLASS_CONFIG to JsonSerializer ::class .java
Original file line number Diff line number Diff line change @@ -44,17 +44,17 @@ logging.level.org.springframework.jdbc.core.StatementCreatorUtils=TRACE
4444# ## keycloak realm config: http://localhost:8090/realms/master/.well-known/openid-configuration
4545spring.security.oauth2.resourceserver.jwt.issuer-uri =http://localhost:8090/realms/master
4646spring.security.oauth2.resourceserver.jwt.jwk-set-uri =http://localhost:8090/realms/master/protocol/openid-connect/certs
47-
4847spring.security.oauth2.client.registration.keycloak.client-id =backend
4948spring.security.oauth2.client.registration.keycloak.client-secret =Jtn7eBkt5hU4E6oNy7iQ2YJPQR8po5oY
5049spring.security.oauth2.client.registration.keycloak.authorization-grant-type =client_credentials
51-
5250spring.security.oauth2.client.provider.keycloak.authorization-uri =http://localhost:8090/realms/master/protocol/openid-connect/auth
5351spring.security.oauth2.client.provider.keycloak.token-uri =http://localhost:8090/realms/master/protocol/openid-connect/token
5452spring.security.oauth2.client.provider.keycloak.user-info-uri =http://localhost:8090/realms/master/protocol/openid-connect/userinfo
5553spring.security.oauth2.client.provider.keycloak.jwk-set-uri =http://localhost:8090/realms/master/protocol/openid-connect/certs
5654
5755# kafka
56+ spring.kafka.bootstrap-servers =localhost:9094
57+ spring.kafka.consumer.group-id =another-group-jvm
5858spring.kafka.consumer.properties.spring.json.use.type.headers =false
5959spring.kafka.consumer.properties.spring.json.value.default.type =com.fasterxml.jackson.databind.JsonNode
6060
Original file line number Diff line number Diff line change @@ -2,16 +2,18 @@ spring.main.allow-bean-definition-overriding=true
22spring.application.name =SoftenoJpaPostgresApp
33
44# ## custom: external services
5-
65com.softeno.external.url =http://localhost:4500/sample
76com.softeno.external.name =node-service
87
98com.softeno.kafka.tx =sample_topic_2
109com.softeno.kafka.rx =sample_topic_2
1110com.softeno.kafka.keycloak =keycloak-events
1211
13- # ## jpa, hibernate & liquibase
12+ # ## kafka
13+ spring.kafka.bootstrap-servers =localhost:9094
14+ spring.kafka.consumer.group-id =another-group-jvm
1415
16+ # ## jpa, hibernate & liquibase
1517spring.datasource.url =jdbc:tc:postgresql:15.2-alpine:///application
1618spring.datasource.username =admin
1719spring.datasource.password =admin
@@ -41,10 +43,8 @@ logging.level.org.springframework.jdbc.core.JdbcTemplate=DEBUG
4143logging.level.org.springframework.jdbc.core.StatementCreatorUtils =TRACE
4244
4345# metrics, prometheus & actuator
44-
4546management.endpoint.metrics.enabled =false
4647management.endpoint.prometheus.enabled =false
4748
4849# swagger
49-
5050springdoc.api-docs.enabled =false
You can’t perform that action at this time.
0 commit comments