package com.goafanti.test.controller; import com.goafanti.common.bo.EmailBo; import com.goafanti.common.constant.AFTConstants; import com.goafanti.common.utils.AsyncUtils; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; @RestController @RequestMapping(value = "/open") public class TestController { @Resource private AsyncUtils asyncUtils; // @GetMapping(value = "/test") public String test(){ asyncUtils.send(new EmailBo("催款处理失败", AFTConstants.ADMIN_EMAIL, "超管", "平台")); return "test"; } }