openapi-springboot-json-and.../templates/libraries/spring-boot/springBootApplication.mustache

14 lines
405 B
Plaintext
Raw Normal View History

2023-10-07 04:41:23 +00:00
package {{basePackage}}
import org.springframework.boot.runApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.ComponentScan
@SpringBootApplication
@ComponentScan(basePackages = ["{{basePackage}}", "{{apiPackage}}", "{{modelPackage}}"])
class Application
fun main(args: Array<String>) {
runApplication<Application>(*args)
}