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