Files
ddd-products/src/main/resources/application.yml
2019-10-24 18:14:03 +09:00

65 lines
1.5 KiB
YAML

server:
port: 8080
---
spring:
profiles: default
jpa:
properties:
hibernate:
show_sql: true
format_sql: true
cloud:
stream:
kafka:
binder:
brokers: localhost:9092
streams:
binder:
configuration:
default:
key:
serde: org.apache.kafka.common.serialization.Serdes$StringSerde
value:
serde: org.apache.kafka.common.serialization.Serdes$StringSerde
bindings:
event-in:
group: products
destination: eventTopic
contentType: application/json
event-out:
destination: eventTopic
contentType: application/json
logging:
level:
org.hibernate.type: trace
org.springframework.cloud: debug
server:
port: 8085
---
spring:
profiles: docker
cloud:
stream:
kafka:
binder:
brokers: my-kafka.kafka.svc.cluster.local:9092
streams:
binder:
configuration:
default:
key:
serde: org.apache.kafka.common.serialization.Serdes$StringSerde
value:
serde: org.apache.kafka.common.serialization.Serdes$StringSerde
bindings:
event-in:
group: products
destination: eventTopicDocker
contentType: application/json
event-out:
destination: eventTopicDocker
contentType: application/json