Created
March 13, 2023 20:23
-
-
Save paulouskunda/fff9fceba2bd453e73883e4232a6e164 to your computer and use it in GitHub Desktop.
Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.paul.config | |
import org.springframework.boot.context.properties.ConfigurationProperties | |
import org.springframework.boot.context.properties.ConstructorBinding | |
@ConfigurationProperties(prefix = "config") | |
@ConstructorBinding | |
data class ApplicationProperties( | |
val internalServerError: String, | |
val illegalArguments: String, | |
val badRequest: String, | |
val methodNotAllowed: String | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.paul.config | |
import io.swagger.v3.oas.models.OpenAPI | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.Configuration | |
@Configuration | |
class SwaggerUIConfig { | |
@Bean | |
fun customOpenApi(): OpenAPI{ | |
return OpenAPI() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment