add JwtProperty
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
package ltd.hlaeja
|
package ltd.hlaeja
|
||||||
|
|
||||||
|
import ltd.hlaeja.property.JwtProperty
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||||
|
import org.springframework.boot.context.properties.EnableConfigurationProperties
|
||||||
import org.springframework.boot.runApplication
|
import org.springframework.boot.runApplication
|
||||||
|
|
||||||
|
@EnableConfigurationProperties(JwtProperty::class)
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
class Application
|
class Application
|
||||||
|
|
||||||
|
|||||||
8
src/main/kotlin/ltd/hlaeja/property/JwtProperty.kt
Normal file
8
src/main/kotlin/ltd/hlaeja/property/JwtProperty.kt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package ltd.hlaeja.property
|
||||||
|
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties
|
||||||
|
|
||||||
|
@ConfigurationProperties(prefix = "jwt")
|
||||||
|
data class JwtProperty(
|
||||||
|
val publicKey: String,
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user