forked from luyan/epmet-cloud-lingshan
				
			
				 4 changed files with 44 additions and 0 deletions
			
			
		@ -0,0 +1,33 @@ | 
				
			|||
/** | 
				
			|||
 * Copyright (c) 2018 人人开源 All rights reserved. | 
				
			|||
 * | 
				
			|||
 * https://www.renren.io
 | 
				
			|||
 * | 
				
			|||
 * 版权所有,侵权必究! | 
				
			|||
 */ | 
				
			|||
 | 
				
			|||
package com.epmet.controller; | 
				
			|||
 | 
				
			|||
import io.swagger.annotations.Api; | 
				
			|||
import lombok.extern.slf4j.Slf4j; | 
				
			|||
import org.springframework.web.bind.annotation.GetMapping; | 
				
			|||
import org.springframework.web.bind.annotation.RequestMapping; | 
				
			|||
import org.springframework.web.bind.annotation.RestController; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 定时任务 | 
				
			|||
 * | 
				
			|||
 * @author Mark sunlightcs@gmail.com | 
				
			|||
 */ | 
				
			|||
@Slf4j | 
				
			|||
@RestController | 
				
			|||
@RequestMapping("demo") | 
				
			|||
@Api(tags="定时任务") | 
				
			|||
public class DemoController { | 
				
			|||
	@GetMapping("testAlarm") | 
				
			|||
	public void testAlarm() { | 
				
			|||
		//for (int i = 0; i < 20; i++) {
 | 
				
			|||
		log.error("测试消息"); | 
				
			|||
		//}
 | 
				
			|||
	} | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue