package com.gxzc.zen.controller import com.gxzc.zen.api.bus.service.IMgrFondsService import com.gxzc.zen.api.sys.service.ISysUserService import org.slf4j.LoggerFactory import org.springframework.beans.factory.annotation.Autowired import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.RestController @RestController class ExampleController { companion object { private val logger = LoggerFactory.getLogger(ExampleController::class.java) } @Autowired private lateinit var mgrFondsService: IMgrFondsService @Autowired private lateinit var sysUserService: ISysUserService @GetMapping("testTransaction") fun testTransaction() { mgrFondsService.testTransaction() } @GetMapping("testLoad") fun testLoad() { sysUserService.selectListCacheable() } }