ApplicationInitializer.kt 762 B

1234567891011121314151617181920212223242526272829
  1. package com.gxzc.zen
  2. import com.gxzc.zen.api.sys.service.ISysUserService
  3. import org.slf4j.LoggerFactory
  4. import org.springframework.beans.factory.annotation.Autowired
  5. import org.springframework.boot.CommandLineRunner
  6. import org.springframework.stereotype.Component
  7. /**
  8. * 启动完成 加载
  9. * @author NorthLan
  10. * @date 2018/3/26
  11. * @url https://noahlan.com
  12. */
  13. @Component
  14. class ApplicationInitializer : CommandLineRunner {
  15. companion object {
  16. private val logger = LoggerFactory.getLogger(ApplicationInitializer::class.java)
  17. }
  18. @Autowired
  19. private lateinit var sysUserService: ISysUserService
  20. override fun run(vararg args: String?) {
  21. logger.info("Started successful... initializing data...")
  22. // sysUserService
  23. }
  24. }