Profiles profile = Profiles.of("p");
boolean isPEnv = environment.acceptsProfiles(profile);

import org.springframework.core.env.Environment;
import org.springframework.core.env.Profiles;

相关文章: