| 
					
				 | 
			
			
				@@ -8,7 +8,10 @@ import com.kmall.admin.websocket.WebSocketServer; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.commons.lang.builder.ToStringBuilder; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.slf4j.Logger; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.slf4j.LoggerFactory; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.beans.BeansException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.context.ApplicationContext; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.context.ApplicationContextAware; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.scheduling.annotation.EnableScheduling; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.scheduling.annotation.Scheduled; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.stereotype.Component; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -35,19 +38,15 @@ public class TestTask { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private SysUserService sysUserService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    private static PickUpCodeService pickUpCodeService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @Scheduled(cron = "0/5 * * * * ?") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    @Scheduled(cron = "0/5 * * * * ?") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void flushPickUpCode() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         logger.info("flushPickUpCode-----------------" ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         WebSocketServer.broadcastInfo("broadcast"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        SysUserEntity user = sysUserService.queryObject(1L); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        System.out.println(ToStringBuilder.reflectionToString(user)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -55,4 +54,6 @@ public class TestTask { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void test2() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         logger.info("我是不带参数的test2方法,正在被执行"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |