Skip to content

Instantly share code, notes, and snippets.

@paulouskunda
Created March 13, 2023 20:23
Show Gist options
  • Save paulouskunda/fff9fceba2bd453e73883e4232a6e164 to your computer and use it in GitHub Desktop.
Save paulouskunda/fff9fceba2bd453e73883e4232a6e164 to your computer and use it in GitHub Desktop.
Config
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
)
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