Skip to content

Instantly share code, notes, and snippets.

@billydh
Created January 16, 2020 02:20
Show Gist options
  • Select an option

  • Save billydh/c797bc8990bc87a46e83c127ab7bdb1e to your computer and use it in GitHub Desktop.

Select an option

Save billydh/c797bc8990bc87a46e83c127ab7bdb1e to your computer and use it in GitHub Desktop.
DynamoConfigProperties written using ConstructorBinding
package io.codebrews.dynamodemo
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.ConstructorBinding
@ConstructorBinding
@ConfigurationProperties(prefix = "application.dynamo")
data class DynamoConfigProperties(
val customerTableName: String,
val region: String,
val endpoint: String
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment