MainApplication.kt 659 B

12345678910111213141516171819
  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//(exclude = [])
  7. //@EnableRedisHttpSession
  8. class MainApplication : SpringBootServletInitializer() {
  9. override fun configure(builder: SpringApplicationBuilder?): SpringApplicationBuilder? {
  10. return builder?.sources(MainApplication::class.java)
  11. }
  12. }
  13. fun main(args: Array<String>) {
  14. SpringApplication.run(MainApplication::class.java, *args)
  15. }