Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46b1b32708 | ||
|
|
519101023c | ||
|
|
82b4f51390 | ||
|
|
3256939ac7 | ||
|
|
02e4c5318d | ||
|
|
f06abd2838 | ||
|
|
f0297f2d2c | ||
|
|
ec23bd4d32 |
-18
@@ -1,18 +0,0 @@
|
||||
package de.twomartens.wahlrecht.configuration
|
||||
|
||||
import org.apache.kafka.clients.admin.AdminClientConfig
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import org.springframework.context.annotation.Profile
|
||||
import org.springframework.kafka.core.KafkaAdmin
|
||||
|
||||
@Configuration
|
||||
open class KafkaConfiguration {
|
||||
@Bean
|
||||
@Profile("prod")
|
||||
open fun kafkaProd() = KafkaAdmin(mapOf(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG to "kafka:9092"))
|
||||
|
||||
@Bean
|
||||
@Profile("dev")
|
||||
open fun kafkaDev() = KafkaAdmin(mapOf(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG to "localhost:9092"))
|
||||
}
|
||||
@@ -9,4 +9,4 @@ import java.time.ZoneId
|
||||
@RefreshScope
|
||||
@ConfigurationProperties(prefix = "de.twomartens.wahlrecht")
|
||||
@Schema(description = "Properties, to configure this Application")
|
||||
data class ServiceProperties @ConstructorBinding constructor(val defaultTimeZone: ZoneId, val greeting: String)
|
||||
data class ServiceProperties @ConstructorBinding constructor(var defaultTimeZone: ZoneId, var greeting: String)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
spring:
|
||||
config:
|
||||
import:
|
||||
- "classpath:config/wahlrecht.yaml"
|
||||
- "optional:configserver:http://configserver:8888/config"
|
||||
- "configserver:http://configserver:8888/config"
|
||||
kafka:
|
||||
bootstrap-servers:
|
||||
- kafka:9092
|
||||
|
||||
@@ -38,6 +38,8 @@ spring:
|
||||
resourceserver:
|
||||
jwt:
|
||||
jwk-set-uri: https://id.2martens.de/realms/2martens/protocol/openid-connect/certs
|
||||
application:
|
||||
name: wahlrecht
|
||||
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
de.twomartens.wahlrecht:
|
||||
greeting: "Moin %s, you are great"
|
||||
greeting: "Moin %s, you are stage"
|
||||
|
||||
Reference in New Issue
Block a user