add JwtProperty

This commit is contained in:
2024-11-22 12:36:50 +01:00
parent 32fe3845a8
commit 8a0aff4729
2 changed files with 11 additions and 0 deletions

View File

@@ -1,8 +1,11 @@
package ltd.hlaeja
import ltd.hlaeja.property.JwtProperty
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.boot.runApplication
@EnableConfigurationProperties(JwtProperty::class)
@SpringBootApplication
class Application

View File

@@ -0,0 +1,8 @@
package ltd.hlaeja.property
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties(prefix = "jwt")
data class JwtProperty(
val privateKey: String,
)