java-tutorials/spring-boot-cli/groovy/yml/Application.groovy

17 lines
421 B
Groovy
Raw Normal View History

2019-10-30 18:09:06 -04:00
package bael.yml
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.builder.SpringApplicationBuilder
import org.springframework.context.annotation.ComponentScan
@EnableAutoConfiguration
@ComponentScan('bael.yml')
class App {
static void main(String[] args) {
new SpringApplicationBuilder()
.sources(App)
.run(args)
}
}