File tree 4 files changed +6
-82
lines changed
kotlin/com/softeno/template/app/kafka/config 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 {
32
32
fun consumerFactory () = DefaultKafkaConsumerFactory <String , JsonNode >(consumerProps)
33
33
34
34
val consumerProps = mapOf (
35
- ConsumerConfig .BOOTSTRAP_SERVERS_CONFIG to " localhost:9094" ,
36
- ConsumerConfig .GROUP_ID_CONFIG to " sample-group-jvm-jpa" ,
37
35
ConsumerConfig .KEY_DESERIALIZER_CLASS_CONFIG to StringDeserializer ::class .java,
38
36
ConsumerConfig .VALUE_DESERIALIZER_CLASS_CONFIG to JsonDeserializer ::class .java,
39
37
JsonDeserializer .USE_TYPE_INFO_HEADERS to false ,
@@ -46,7 +44,6 @@ class KafkaConfig {
46
44
fun producerFactory () = DefaultKafkaProducerFactory <String , KafkaMessage >(senderProps)
47
45
48
46
val senderProps = mapOf (
49
- ProducerConfig .BOOTSTRAP_SERVERS_CONFIG to " localhost:9094" ,
50
47
ProducerConfig .LINGER_MS_CONFIG to 10 ,
51
48
ProducerConfig .KEY_SERIALIZER_CLASS_CONFIG to StringSerializer ::class .java,
52
49
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
44
44
# ## keycloak realm config: http://localhost:8090/realms/master/.well-known/openid-configuration
45
45
spring.security.oauth2.resourceserver.jwt.issuer-uri =http://localhost:8090/realms/master
46
46
spring.security.oauth2.resourceserver.jwt.jwk-set-uri =http://localhost:8090/realms/master/protocol/openid-connect/certs
47
-
48
47
spring.security.oauth2.client.registration.keycloak.client-id =backend
49
48
spring.security.oauth2.client.registration.keycloak.client-secret =Jtn7eBkt5hU4E6oNy7iQ2YJPQR8po5oY
50
49
spring.security.oauth2.client.registration.keycloak.authorization-grant-type =client_credentials
51
-
52
50
spring.security.oauth2.client.provider.keycloak.authorization-uri =http://localhost:8090/realms/master/protocol/openid-connect/auth
53
51
spring.security.oauth2.client.provider.keycloak.token-uri =http://localhost:8090/realms/master/protocol/openid-connect/token
54
52
spring.security.oauth2.client.provider.keycloak.user-info-uri =http://localhost:8090/realms/master/protocol/openid-connect/userinfo
55
53
spring.security.oauth2.client.provider.keycloak.jwk-set-uri =http://localhost:8090/realms/master/protocol/openid-connect/certs
56
54
57
55
# kafka
56
+ spring.kafka.bootstrap-servers =localhost:9094
57
+ spring.kafka.consumer.group-id =another-group-jvm
58
58
spring.kafka.consumer.properties.spring.json.use.type.headers =false
59
59
spring.kafka.consumer.properties.spring.json.value.default.type =com.fasterxml.jackson.databind.JsonNode
60
60
Original file line number Diff line number Diff line change @@ -2,16 +2,18 @@ spring.main.allow-bean-definition-overriding=true
2
2
spring.application.name =SoftenoJpaPostgresApp
3
3
4
4
# ## custom: external services
5
-
6
5
com.softeno.external.url =http://localhost:4500/sample
7
6
com.softeno.external.name =node-service
8
7
9
8
com.softeno.kafka.tx =sample_topic_2
10
9
com.softeno.kafka.rx =sample_topic_2
11
10
com.softeno.kafka.keycloak =keycloak-events
12
11
13
- # ## jpa, hibernate & liquibase
12
+ # ## kafka
13
+ spring.kafka.bootstrap-servers =localhost:9094
14
+ spring.kafka.consumer.group-id =another-group-jvm
14
15
16
+ # ## jpa, hibernate & liquibase
15
17
spring.datasource.url =jdbc:tc:postgresql:15.2-alpine:///application
16
18
spring.datasource.username =admin
17
19
spring.datasource.password =admin
@@ -41,10 +43,8 @@ logging.level.org.springframework.jdbc.core.JdbcTemplate=DEBUG
41
43
logging.level.org.springframework.jdbc.core.StatementCreatorUtils =TRACE
42
44
43
45
# metrics, prometheus & actuator
44
-
45
46
management.endpoint.metrics.enabled =false
46
47
management.endpoint.prometheus.enabled =false
47
48
48
49
# swagger
49
-
50
50
springdoc.api-docs.enabled =false
You can’t perform that action at this time.
0 commit comments