logback.groovy配置文件中有四行代码不明白,麻烦谁会解释下:
def props = new Properties()
props.load(this.getClass().getClassLoader().getResourceAsStream("properties/application.properties"))
def config = new ConfigSlurper().parse(props)
def env = System.properties['spring.profiles.active'] ?: 'production'