public boolean matches(ConditionContext conditionContext,AnnotatedTypeMetadata annotatedTypeMetadata) {
Sring os = conditionContext.getEnvironment().getProperty("os.name");
if(os.contains("Windows")) {
return true;
}
return false;
}
Java判断当前操作系统是否是Windows
最新推荐文章于 2024-07-27 04:48:14 发布