All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tairitsu.ignotus.exception.ExceptionConfig.kt Maven / Gradle / Ivy

There is a newer version: 1.0.32
Show newest version
package com.tairitsu.ignotus.exception

import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.stereotype.Component

@Component("IgnotusExceptionConfig")
@ConfigurationProperties(prefix = "ignotus.exception")
open class ExceptionConfig {
    @JvmField var debug: Boolean = false

    open fun isDebug(): Boolean {
        return debug
    }

    open fun setDebug(debug: Boolean) {
        IS_DEBUG = debug
        this.debug = debug
    }

    companion object {
        var IS_DEBUG = false
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy