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

com.alibaba.boot.web.condition.ConditionalOnPropertyPrefix Maven / Gradle / Ivy

There is a newer version: 1.0.0.RELEASE
Show newest version
package com.alibaba.boot.web.condition;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * {@link Conditional} that checks if the prefix of properties are found in environment..
 *
 * @author Mercy
 * @see OnPropertyPrefixCondition
 * @since 2017.03.29
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Conditional(OnPropertyPrefixCondition.class)
public @interface ConditionalOnPropertyPrefix {

    /**
     * The prefix values of properties.
     * 

* The prefix automatically ends * with a dot if not specified. * * @return prefix values of properties. */ String[] value(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy