spring.turbo.bean.injection.IsDebugMode Maven / Gradle / Ivy
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* ____ _ _____ _
* / ___| _ __ _ __(_)_ __ __ |_ _| _ _ __| |__ ___
* \___ \| '_ \| '__| | '_ \ / _` || || | | | '__| '_ \ / _ \
* ___) | |_) | | | | | | | (_| || || |_| | | | |_) | (_) |
* |____/| .__/|_| |_|_| |_|\__, ||_| \__,_|_| |_.__/ \___/
* |_| |___/ https://github.com/yingzhuo/spring-turbo
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
package spring.turbo.bean.injection;
import org.springframework.beans.factory.annotation.Value;
import java.lang.annotation.*;
/**
* 注入{@code boolean}值表达应用程序是否处于debug模式
*
* @author 应卓
* @see IsTraceOrDebugMode
* @see IsTraceMode
* @see Value
* @since 1.2.3
*/
@Inherited
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Value("#{environment.getProperty('debug') != null && environment.getProperty('debug') != 'false'}")
public @interface IsDebugMode {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy