admin
2024-04-24 363457b34e0e4f26ffe51aa80ecb227bf7873308
提交 | 用户 | 时间
363457 1 package com.jcdm.quartz.task;
A 2
3 import org.springframework.stereotype.Component;
4 import com.jcdm.common.utils.StringUtils;
5
6 /**
7  * 定时任务调度测试
8  * 
9  * @author jc
10  */
11 @Component("ryTask")
12 public class RyTask
13 {
14     public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i)
15     {
16         System.out.println(StringUtils.format("执行多参方法: 字符串类型{},布尔类型{},长整型{},浮点型{},整形{}", s, b, l, d, i));
17     }
18
19     public void ryParams(String params)
20     {
21         System.out.println("执行有参方法:" + params);
22     }
23
24     public void ryNoParams()
25     {
26         System.out.println("执行无参方法");
27     }
28 }