Skip to content

Commit ff79c6e

Browse files
committed
Update @Value annotations to @param:Value in AxonConfig classes to improve parameter declaration clarity
1 parent 7007710 commit ff79c6e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • video-series-core/src/main/kotlin/org/jesperancinha/video/core/configuration
  • video-series-mono/src/main/kotlin/org/jesperancinha/video/config

video-series-core/src/main/kotlin/org/jesperancinha/video/core/configuration/AxonConfig.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ import java.util.*
2727

2828
@Configuration
2929
class AxonConfig(
30-
@Value("\${video.series.mongo.port}")
30+
@param:Value("\${video.series.mongo.port}")
3131
val mongoPort: Long,
32-
@Value("\${video.series.mongo.host:localhost}")
32+
@param:Value("\${video.series.mongo.host:localhost}")
3333
val mongoHost: String
3434
) {
3535

video-series-mono/src/main/kotlin/org/jesperancinha/video/config/AxonConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import org.springframework.context.annotation.Configuration
1919

2020
@Configuration
2121
class AxonConfig(
22-
@Value("\${video.series.mongo.port}")
22+
@param:Value("\${video.series.mongo.port}")
2323
private val mongoPort: Long
2424
) {
2525

0 commit comments

Comments
 (0)