mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-24 02:09:05 +00:00
14 lines
350 B
Groovy
14 lines
350 B
Groovy
import org.springframework.util.*
|
|
|
|
@Component
|
|
public class Test implements CommandLineRunner {
|
|
|
|
public void run(String... args) throws Exception {
|
|
println "HasClasses-" + ClassUtils.isPresent("missing", null) + "-" +
|
|
ClassUtils.isPresent("org.springframework.boot.SpringApplication", null) + "-" +
|
|
ClassUtils.isPresent(args[0], null)
|
|
}
|
|
|
|
}
|
|
|