Skip to content

bitfist/os-conditions-spring-boot-starter

Repository files navigation

Gradle build Coverage Branches

Spring Boot Operating System Conditions

Spring Boot Operating System Conditions provides @Conditionals for OS detection.

Table of contents

Features

Usage

@ConditionalOnOperatingSystem

@Configuration(proxyBeanMethods = false)
@ConditionalOnOperatingSystem(OperatingSystem.WINDOWS)
public class WindowsConfiguration {
    // ...
}

OperatingSystem bean

@Configuration
public class SomeConfiguration {
    
    @Bean
    Object someBeanProducer(OperatingSystem operatingSystem) {
        // ...
    }
}

Dependency

The GitHub documentation explains in detail how to use GitHub packages.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •  

Languages