MainApplication.kt 617 B

123456789101112131415161718
  1. package com.gxzc.zen
  2. import org.springframework.boot.SpringApplication
  3. import org.springframework.boot.autoconfigure.SpringBootApplication
  4. import org.springframework.boot.builder.SpringApplicationBuilder
  5. import org.springframework.boot.web.support.SpringBootServletInitializer
  6. @SpringBootApplication
  7. class MainApplication : SpringBootServletInitializer() {
  8. override fun configure(builder: SpringApplicationBuilder?): SpringApplicationBuilder? {
  9. return builder?.sources(MainApplication::class.java)
  10. }
  11. }
  12. fun main(args: Array<String>) {
  13. SpringApplication.run(MainApplication::class.java, *args)
  14. }