锘??xml version="1.0" encoding="utf-8" standalone="yes"?> spring鐨?閰嶇疆鏂囦歡鍦ㄥ惎鍔ㄦ椂錛屽姞杞界殑鏄痺eb-info鐩綍涓嬬殑applicationContext.xml, <context-param> 澶氫釜閰嶇疆鏂囦歡鐨勫姞杞?br /><context-param> contextConfigLocation 鍙傛暟瀹氫箟浜嗚瑁呭叆鐨?Spring 閰嶇疆鏂囦歡銆?/p> 鐢變簬鏄嬌鐢?strong style="color: black; background-color: #ffff66; ">spring mvc鏉ュ仛欏圭洰錛屽洜姝よ劚紱諱簡HttpServletRequest浣滀負鍙傛暟錛屼笉鑳藉鐩存帴浣跨敤request錛岃鎯充嬌鐢╮equest鍙互浣跨敤涓嬮潰鐨勬柟娉曪細 鍦╳eb鐐箈ml涓厤緗竴涓洃鍚?/p>
榪愯鏃朵嬌鐢ㄧ殑鏄痺eb-info/classes鐩綍涓嬬殑applicationContext.xml銆?br />
閰嶇疆web.xml浣胯繖2涓礬寰勪竴鑷達細
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/applicationContext.xml</param-value>
</context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:conf/spring/applicationContext_core*.xml,
classpath*:conf/spring/applicationContext_dict*.xml,
classpath*:conf/spring/applicationContext_hibernate.xml,
classpath*:conf/spring/applicationContext_staff*.xml,
classpath*:conf/spring/applicationContext_security.xml
classpath*:conf/spring/applicationContext_modules*.xml
classpath*:conf/spring/applicationContext_cti*.xml
classpath*:conf/spring/applicationContext_apm*.xml
</param-value>
</context-param><listener> <listener-class> org.springframework.web.context.request.RequestContextListener </listener-class> </listener>
涔嬪悗灝卞彲浠ュ湪紼嬪簭浣跨敤浜?p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
HttpServletRequest request = ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
鍦▁ml閰嶇疆浜嗚繖涓爣絳懼悗錛宻pring鍙互鑷姩鍘繪壂鎻廱ase-pack涓嬮潰鎴栬呭瓙鍖呬笅闈㈢殑java鏂囦歡錛屽鏋滄壂鎻忓埌鏈堾Component @Controller@Service絳夎繖浜涙敞瑙g殑綾伙紝鍒欐妸榪欎簺綾繪敞鍐屼負bean
娉ㄦ剰錛氬鏋滈厤緗簡<context:component-scan>閭d箞<context:annotation-config/>鏍囩灝卞彲浠ヤ笉鐢ㄥ啀xml涓厤緗簡錛屽洜涓哄墠鑰呭寘鍚簡鍚庤呫傚彟澶?lt;context:annotation-config/>榪樻彁渚涗簡涓や釜瀛愭爣絳?/p>
1. <context:include-filter>
2. <context:exclude-filter>
鍦ㄨ鏄庤繖涓や釜瀛愭爣絳懼墠錛屽厛璇翠竴涓?lt;context:component-scan>鏈変竴涓猽se-default-filters灞炴э紝鏀瑰睘鎬ч粯璁や負true,榪欏氨鎰忓懗鐫浼氭壂鎻忔寚瀹氬寘涓嬬殑鍏ㄩ儴鐨勬爣鏈?/span>@Component鐨勭被錛屽茍娉ㄥ唽鎴?/span>bean.涔熷氨鏄?/span>@Component鐨勫瓙娉ㄨВ@Service,@Reposity絳?/span>銆傛墍浠ュ鏋滀粎浠呮槸鍦ㄩ厤緗枃浠朵腑榪欎箞鍐?/p> <context:component-scan base-package="tv.huan.weisp.web"/> Use-default-filter姝ゆ椂涓簍rue閭d箞浼氬base-package鍖呮垨鑰呭瓙鍖呬笅鐨勬墍鏈夌殑榪涜java綾昏繘琛屾壂鎻?騫舵妸鍖歸厤鐨刯ava綾繪敞鍐屾垚bean銆?/p> 鍙互鍙戠幇榪欑鎵弿鐨勭矑搴︽湁鐐瑰お澶э紝濡傛灉浣犲彧鎯蟲壂鎻忔寚瀹氬寘涓嬮潰鐨凜ontroller錛岃鎬庝箞鍔烇紵姝ゆ椂瀛愭爣絳?lt;context:incluce-filter>灝辮搗鍒頒簡鍕囨涔嬪湴銆傚涓嬫墍紺?/p> <context:component-scan base-package="tv.huan.weisp.web .controller"> <context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/> </context:component-scan> 榪欐牱灝變細鍙壂鎻廱ase-package鎸囧畾涓嬬殑鏈堾Controller涓嬬殑java綾伙紝騫舵敞鍐屾垚bean 浣嗘槸鍥犱負use-dafault-filter鍦ㄤ笂闈㈠茍娌℃湁鎸囧畾錛岄粯璁ゅ氨涓簍rue錛屾墍浠ュ綋鎶婁笂闈㈢殑閰嶇疆鏀規垚濡備笅鎵紺虹殑鏃跺欙紝灝變細浜х敓涓庝綘鏈熸湜鐩告倴鐨勭粨鏋?span style="color: red; ">錛堟敞鎰?/span>base-package鍖呭煎緱鍙樺寲錛?/span> <context:component-scan base-package="tv.huan.weisp.web "> <context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/> </context:component-scan> 姝ゆ椂錛宻pring涓嶄粎鎵弿浜咢Controller錛岃繕鎵弿浜嗘寚瀹氬寘鎵鍦ㄧ殑瀛愬寘service鍖呬笅娉ㄨВ@Service鐨刯ava綾?/p> 姝ゆ椂鎸囧畾鐨刬nclude-filter娌℃湁璧峰埌浣滅敤錛屽彧瑕佹妸use-default-filter璁劇疆鎴恌alse灝卞彲浠ヤ簡銆傝繖鏍峰氨鍙互閬垮厤鍦╞ase-packeage閰嶇疆澶氫釜鍖呭悕榪欑涓嶆槸寰堜紭闆呯殑鏂規硶鏉ヨВ鍐寵繖涓棶棰樹簡銆?/p> 鍙﹀鍦ㄦ垜鍙備笌鐨勯」鐩腑鍙互鍙戠幇鍦╞ase-package鎸囧畾鐨勫寘涓湁鐨勫瓙鍖呮槸涓嶅惈鏈夋敞瑙d簡錛屾墍浠ヤ笉鐢ㄦ壂鎻忥紝姝ゆ椂鍙互鎸囧畾<context:exclude-filter>鏉ヨ繘琛岃繃婊わ紝璇存槑姝ゅ寘涓嶉渶瑕佽鎵弿銆傜患鍚堜互涓婅鏄?/p> Use-dafault-filters=”false”鐨勬儏鍐典笅錛?lt;context:exclude-filter>鎸囧畾鐨勪笉鎵弿錛?lt;context:include-filter>鎸囧畾鐨勬壂鎻?/p>
瀛楁 | 鍏佽鍊?/th> | 鍏佽鐨勭壒孌婂瓧絎?/th> | ||
---|---|---|---|---|
縐?/code> |
0-59 |
, - * / |
||
鍒?/code> |
0-59 |
, - * / |
||
灝忔椂 |
0-23 |
, - * / |
||
鏃ユ湡 |
1-31 |
, - * ? / L W C |
||
鏈堜喚 |
1-12 鎴栬?JAN-DEC |
, - * / |
||
鏄熸湡 |
1-7 鎴栬?SUN-SAT |
, - * ? / L C # |
||
騫達紙鍙夛級 |
鐣欑┖, 1970-2099 |
, - * / |
The '*' character is used to specify all values. For example, "*" in the minute field means "every minute".
“*”瀛楃琚敤鏉ユ寚瀹氭墍鏈夌殑鍊箋傚錛?#8221;*“鍦ㄥ垎閽熺殑瀛楁鍩熼噷琛ㄧず“姣忓垎閽?#8221;銆?nbsp;
The '?' character is allowed for the day-of-month and day-of-week fields. It is used to specify 'no specific value'. This is useful when you need to specify something in one of the two fileds, but not the other. See the examples below for clarification.
“?”瀛楃鍙湪鏃ユ湡鍩熷拰鏄熸湡鍩熶腑浣跨敤銆傚畠琚敤鏉ユ寚瀹?#8220;闈炴槑紜殑鍊?#8221;銆傚綋浣犻渶瑕侀氳繃鍦ㄨ繖涓や釜鍩熶腑鐨勪竴涓潵鎸囧畾涓浜涗笢瑗跨殑鏃跺欙紝瀹冩槸鏈夌敤鐨勩傜湅涓嬮潰鐨勪緥瀛愪綘灝變細鏄庣櫧銆?nbsp;
鏈堜喚涓殑鏃ユ湡鍜屾槦鏈熶腑鐨勬棩鏈熻繖涓や釜鍏冪礌鏃朵簰鏂ョ殑涓璧峰簲璇ラ氳繃璁劇疆涓涓棶鍙??)鏉ヨ〃鏄庝笉鎯寵緗偅涓瓧孌?br />
The '-' character is used to specify ranges For example "10-12" in the hour field means "the hours 10, 11 and 12".
“-”瀛楃琚敤鏉ユ寚瀹氫竴涓寖鍥淬傚錛?#8220;10-12”鍦ㄥ皬鏃跺煙鎰忓懗鐫“10鐐廣?1鐐廣?2鐐?#8221;銆?nbsp;
The ',' character is used to specify additional values. For example "MON,WED,FRI" in the day-of-week field means "the days Monday, Wednesday, and Friday".
“,”瀛楃琚敤鏉ユ寚瀹氬彟澶栫殑鍊箋傚錛?#8220;MON,WED,FRI”鍦ㄦ槦鏈熷煙閲岃〃紺?#8221;鏄熸湡涓銆佹槦鏈熶笁銆佹槦鏈熶簲”.
The '/' character is used to specify increments. For example "0/15" in the seconds field means "the seconds 0, 15, 30, and 45". And "5/15" in the seconds field means "the seconds 5, 20, 35, and 50". Specifying '*' before the '/' is equivalent to specifying 0 is the value to start with. Essentially, for each field in the expression, there is a set of numbers that can be turned on or off. For seconds and minutes, the numbers range from 0 to 59. For hours 0 to 23, for days of the month 0 to 31, and for months 1 to 12. The "/" character simply helps you turn on every "nth" value in the given set. Thus "7/6" in the month field only turns on month "7", it does NOT mean every 6th month, please note that subtlety.
The 'L' character is allowed for the day-of-month and day-of-week fields. This character is short-hand for "last", but it has different meaning in each of the two fields. For example, the value "L" in the day-of-month field means "the last day of the month" - day 31 for January, day 28 for February on non-leap years. If used in the day-of-week field by itself, it simply means "7" or "SAT". But if used in the day-of-week field after another value, it means "the last xxx day of the month" - for example "6L" means "the last friday of the month". When using the 'L' option, it is important not to specify lists, or ranges of values, as you'll get confusing results.
L鏄?#8216;last’鐨勭渷鐣ュ啓娉曞彲浠ヨ〃紺篸ay-of-month鍜宒ay-of-week鍩燂紝浣嗗湪涓や釜瀛楁涓殑鎰忔濅笉鍚岋紝渚嬪day-of-month鍩熶腑琛ㄧず涓涓湀鐨勬渶鍚庝竴澶╋紝
濡傛灉鍦╠ay-of-week鍩熻〃紺?#8216;7’鎴栬?#8216;SAT’錛屽鏋滃湪day-of-week鍩熶腑鍓嶉潰鍔犱笂鏁板瓧錛屽畠琛ㄧず涓涓湀鐨勬渶鍚庡嚑澶╋紝渚嬪‘6L’灝辮〃紺轟竴涓湀鐨勬渶鍚庝竴涓?br />
鏄熸湡浜旓紝
The 'W' character is allowed for the day-of-month field. This character is used to specify the weekday (Monday-Friday) nearest the given day. As an example, if you were to specify "15W" as the value for the day-of-month field, the meaning is: "the nearest weekday to the 15th of the month". So if the 15th is a Saturday, the trigger will fire on Friday the 14th. If the 15th is a Sunday, the trigger will fire on Monday the 16th. If the 15th is a Tuesday, then it will fire on Tuesday the 15th. However if you specify "1W" as the value for day-of-month, and the 1st is a Saturday, the trigger will fire on Monday the 3rd, as it will not 'jump' over the boundary of a month's days. The 'W' character can only be specified when the day-of-month is a single day, not a range or list of days
.
The 'L' and 'W' characters can also be combined for the day-of-month expression to yield 'LW', which translates to "last weekday of the month".
The '#' character is allowed for the day-of-week field. This character is used to specify "the nth" XXX day of the month. For example, the value of "6#3" in the day-of-week field means the third Friday of the month (day 6 = Friday and "#3" = the 3rd one in the month). Other examples: "2#1" = the first Monday of the month and "4#5" = the fifth Wednesday of the month. Note that if you specify "#5" and there is not 5 of the given day-of-week in the month, then no firing will occur that month.
The 'C' character is allowed for the day-of-month and day-of-week fields. This character is short-hand for "calendar". This means values are calculated against the associated calendar, if any. If no calendar is associated, then it is equivalent to having an all-inclusive calendar. A value of "5C" in the day-of-month field means "the first day included by the calendar on or after the 5th". A value of "1C" in the day-of-week field means "the first day included by the calendar on or after sunday".
鍏充簬cronExpression鐨勪粙緇?
瀛楁 鍏佽鍊?鍏佽鐨勭壒孌婂瓧絎?nbsp;
縐?0-59 , - * /
鍒?0-59 , - * /
灝忔椂 0-23 , - * /
鏃ユ湡 1-31 , - * ? / L W C
鏈堜喚 1-12 鎴栬?JAN-DEC , - * /
鏄熸湡 1-7 鎴栬?SUN-SAT , - * ? / L C #
騫達紙鍙夛級 鐣欑┖, 1970-2099 , - * /
琛ㄨ揪寮忔剰涔?nbsp;
"0 0 12 * * ?" 姣忓ぉ涓崍12鐐硅Е鍙?nbsp;
"0 15 10 ? * *" 姣忓ぉ涓婂崍10:15瑙﹀彂
"0 15 10 * * ?" 姣忓ぉ涓婂崍10:15瑙﹀彂
"0 15 10 * * ? *" 姣忓ぉ涓婂崍10:15瑙﹀彂
"0 15 10 * * ? 2005" 2005騫寸殑姣忓ぉ涓婂崍10:15瑙﹀彂
"0 * 14 * * ?" 鍦ㄦ瘡澶╀笅鍗?鐐瑰埌涓嬪崍2:59鏈熼棿鐨勬瘡1鍒嗛挓瑙﹀彂
"0 0/5 14 * * ?" 鍦ㄦ瘡澶╀笅鍗?鐐瑰埌涓嬪崍2:55鏈熼棿鐨勬瘡5鍒嗛挓瑙﹀彂
"0 0/5 14,18 * * ?" 鍦ㄦ瘡澶╀笅鍗?鐐瑰埌2:55鏈熼棿鍜屼笅鍗?鐐瑰埌6:55鏈熼棿鐨勬瘡5鍒嗛挓瑙﹀彂
"0 0-5 14 * * ?" 鍦ㄦ瘡澶╀笅鍗?鐐瑰埌涓嬪崍2:05鏈熼棿鐨勬瘡1鍒嗛挓瑙﹀彂
"0 10,44 14 ? 3 WED" 姣忓勾涓夋湀鐨勬槦鏈熶笁鐨勪笅鍗?:10鍜?:44瑙﹀彂
"0 15 10 ? * MON-FRI" 鍛ㄤ竴鑷沖懆浜旂殑涓婂崍10:15瑙﹀彂
"0 15 10 15 * ?" 姣忔湀15鏃ヤ笂鍗?0:15瑙﹀彂
"0 15 10 L * ?" 姣忔湀鏈鍚庝竴鏃ョ殑涓婂崍10:15瑙﹀彂
"0 15 10 ? * 6L" 姣忔湀鐨勬渶鍚庝竴涓槦鏈熶簲涓婂崍10:15瑙﹀彂
"0 15 10 ? * 6L 2002-2005" 2002騫磋嚦2005騫寸殑姣忔湀鐨勬渶鍚庝竴涓槦鏈熶簲涓婂崍10:15瑙﹀彂
"0 15 10 ? * 6#3" 姣忔湀鐨勭涓変釜鏄熸湡浜斾笂鍗?0:15瑙﹀彂
姣忓ぉ鏃╀笂6鐐?nbsp;
0 6 * * *
姣忎袱涓皬鏃?nbsp;
0 */2 * * *
鏅氫笂11鐐瑰埌鏃╀笂8鐐逛箣闂存瘡涓や釜灝忔椂錛屾棭涓婂叓鐐?nbsp;
0 23-7/2錛? * * *
姣忎釜鏈堢殑4鍙峰拰姣忎釜紺兼嫓鐨勭ぜ鎷滀竴鍒扮ぜ鎷滀笁鐨勬棭涓?1鐐?nbsp;
0 11 4 * 1-3
1鏈?鏃ユ棭涓?鐐?nbsp;
0 4 1 1 *
quartz鐨勯珮綰х壒鎬т笉浠呭姝?nbsp;
1 鏁版嵁搴撳瓨鍌?nbsp;
2 闆嗙兢鏀寔
3 鏁版嵁搴撴寔涔呭寲浠誨姟錛宼rigger
4 trigger 鐨勫仠姝紝榪愯
5 浠誨姟鐨勪換鎰忔坊鍔?nbsp;
6 姣攃orntrigger 鏇磋灝界殑浠誨姟瀹夋帓
7 綰跨▼鐨勫唴閮ㄦ暟鎹氦鎹?br />
涓涓猚ron琛ㄨ揪寮忔湁鑷沖皯6涓紙涔熷彲鑳?涓級鏈夌┖鏍煎垎闅旂殑鏃墮棿鍏冪礌銆?br />鎸夐『搴忎緷嬈′負
1.縐掞紙0~59錛?br />2.鍒嗛挓錛?~59錛?br />3.灝忔椂錛?~23錛?/span>
4.澶╋紙鏈堬級錛?~31錛屼絾鏄綘闇瑕佽冭檻浣犳湀鐨勫ぉ鏁幫級
5.鏈堬紙0~11錛?br />6.澶╋紙鏄熸湡錛夛紙1~7 1=SUN 鎴?SUN錛孧ON錛孴UE錛學ED錛孴HU錛孎RI錛孲AT錛?br />7.騫翠喚錛?970錛?099錛?/span>
鍏朵腑姣忎釜鍏冪礌鍙互鏄竴涓?濡?),涓涓繛緇尯闂?9-12),涓涓棿闅旀椂闂?8-18/4)(/琛ㄧず姣忛殧4灝忔椂),涓涓垪琛?1,3,5),閫氶厤絎︺?br />鐢變簬"鏈堜喚涓殑鏃ユ湡"鍜?鏄熸湡涓殑鏃ユ湡"榪欎袱涓厓绱犱簰鏂ョ殑,蹇呴』瑕佸鍏朵腑涓涓緗?.
0 0 10,14,16 * * ? 姣忓ぉ涓婂崍10鐐癸紝涓嬪崍2鐐癸紝4鐐?br />0 0/30 9-17 * * ??? 鏈濅節鏅氫簲宸ヤ綔鏃墮棿鍐呮瘡鍗婂皬鏃?br />0 0 12 ? * WED 琛ㄧず姣忎釜鏄熸湡涓変腑鍗?2鐐?/span>
鏈変簺瀛愯〃杈懼紡鑳藉寘鍚竴浜涜寖鍥存垨鍒楄〃
渚嬪錛氬瓙琛ㄨ揪寮忥紙澶╋紙鏄熸湡錛夛級鍙互涓?“MON-FRI”錛?#8220;MON錛學ED錛孎RI”錛?#8220;MON-WED,SAT”
“*”瀛楃浠h〃鎵鏈夊彲鑳界殑鍊?br />鍥犳錛?#8220;*”鍦ㄥ瓙琛ㄨ揪寮忥紙鏈堬級閲岃〃紺烘瘡涓湀鐨勫惈涔夛紝“*”鍦ㄥ瓙琛ㄨ揪寮忥紙澶╋紙鏄熸湡錛夛級琛ㄧず鏄熸湡鐨勬瘡涓澶?/span>
“/”瀛楃鐢ㄦ潵鎸囧畾鏁板肩殑澧為噺
渚嬪錛氬湪瀛愯〃杈懼紡錛堝垎閽燂級閲岀殑“0/15”琛ㄧず浠庣0鍒嗛挓寮濮嬶紝姣?5鍒嗛挓 ;
鍦ㄥ瓙琛ㄨ揪寮忥紙鍒嗛挓錛夐噷鐨?#8220;3/20”琛ㄧず浠庣3鍒嗛挓寮濮嬶紝姣?0鍒嗛挓錛堝畠鍜?#8220;3錛?3錛?3”錛夌殑鍚箟涓鏍?br />
“錛?#8221;瀛楃浠呰鐢ㄤ簬澶╋紙鏈堬級鍜屽ぉ錛堟槦鏈燂級涓や釜瀛愯〃杈懼紡錛岃〃紺轟笉鎸囧畾鍊?br />褰?涓瓙琛ㄨ揪寮忓叾涓箣涓琚寚瀹氫簡鍊間互鍚庯紝涓轟簡閬垮厤鍐茬獊錛岄渶瑕佸皢鍙︿竴涓瓙琛ㄨ揪寮忕殑鍊艱涓?#8220;錛?#8221;
“L” 瀛楃浠呰鐢ㄤ簬澶╋紙鏈堬級鍜屽ぉ錛堟槦鏈燂級涓や釜瀛愯〃杈懼紡錛屽畠鏄崟璇?#8220;last”鐨勭緝鍐?/span>
浣嗘槸瀹冨湪涓や釜瀛愯〃杈懼紡閲岀殑鍚箟鏄笉鍚岀殑銆?/span>
鍦ㄥぉ錛堟湀錛夊瓙琛ㄨ揪寮忎腑錛?#8220;L”琛ㄧず涓涓湀鐨勬渶鍚庝竴澶?,
鍦ㄥぉ錛堟槦鏈燂級鑷〃杈懼紡涓紝“L”琛ㄧず涓涓槦鏈熺殑鏈鍚庝竴澶╋紝涔熷氨鏄疭AT
濡傛灉鍦?#8220;L”鍓嶆湁鍏蜂綋鐨勫唴瀹癸紝瀹冨氨鍏鋒湁鍏朵粬鐨勫惈涔変簡
渚嬪錛?#8220;6L”琛ㄧず榪欎釜鏈堢殑鍊掓暟絎紪澶╋紝“錛︼疾錛╋棘”琛ㄧず榪欎釜鏈堢殑鏈鍚庝竴涓槦鏈熶簲
娉ㄦ剰錛氬湪浣跨敤“L”鍙傛暟鏃訛紝涓嶈鎸囧畾鍒楄〃鎴栬寖鍥達紝鍥犱負榪欎細瀵艱嚧闂
============================================
CronTrigger閰嶇疆瀹屾暣鏍煎紡涓猴細 [縐抅 [鍒哴 [灝忔椂] [鏃 [鏈圿 [鍛╙ [騫碷
搴忓彿 | 璇存槑 | 鏄惁蹇呭~ | 鍏佽濉啓鐨勫?/td> | 鍏佽鐨勯氶厤絎?/td> |
1 | 縐?/td> | 鏄?/td> | 0-59 | , - * / |
2 | 鍒?/td> | 鏄?/td> | 0-59 | , - * / |
3 | 灝忔椂 | 鏄?/td> | 0-23 | , - * / |
4 | 鏃?/td> | 鏄?/td> | 1-31 | , - * ? / L W |
5 | 鏈?/td> | 鏄?/td> | 1-12 or JAN-DEC | , - * / |
6 | 鍛?/td> | 鏄?/td> | 1-7 or SUN-SAT | , - * ? / L # |
7 | 騫?/td> | 鍚?/td> | empty 鎴?1970-2099 | , - * / |
閫氶厤絎﹁鏄?
* 琛ㄧず鎵鏈夊? 渚嬪:鍦ㄥ垎鐨勫瓧孌典笂璁劇疆 "*",琛ㄧず姣忎竴鍒嗛挓閮戒細瑙﹀彂銆?br />? 琛ㄧず涓嶆寚瀹氬箋備嬌鐢ㄧ殑鍦烘櫙涓轟笉闇瑕佸叧蹇冨綋鍓嶈緗繖涓瓧孌電殑鍊箋備緥濡?瑕佸湪姣忔湀鐨?0鍙瘋Е鍙戜竴涓搷浣滐紝浣嗕笉鍏沖績鏄懆鍑狅紝鎵浠ラ渶瑕佸懆浣嶇疆鐨勯偅涓瓧孌佃緗負"?" 鍏蜂綋璁劇疆涓?0 0 0 10 * ?
- 琛ㄧず鍖洪棿銆備緥濡?鍦ㄥ皬鏃朵笂璁劇疆 "10-12",琛ㄧず 10,11,12鐐歸兘浼氳Е鍙戙?br />, 琛ㄧず鎸囧畾澶氫釜鍊鹼紝渚嬪鍦ㄥ懆瀛楁涓婅緗?"MON,WED,FRI" 琛ㄧず鍛ㄤ竴錛屽懆涓夊拰鍛ㄤ簲瑙﹀彂
/ 鐢ㄤ簬閫掑瑙﹀彂銆傚鍦ㄧ涓婇潰璁劇疆"5/15" 琛ㄧず浠?縐掑紑濮嬶紝姣忓15縐掕Е鍙?5,20,35,50)銆?鍦ㄦ湀瀛楁涓婅緗?1/3'鎵紺烘瘡鏈?鍙峰紑濮嬶紝姣忛殧涓夊ぉ瑙﹀彂涓嬈°?br />L 琛ㄧず鏈鍚庣殑鎰忔濄傚湪鏃ュ瓧孌佃緗笂錛岃〃紺哄綋鏈堢殑鏈鍚庝竴澶?渚濇嵁褰撳墠鏈堜喚錛屽鏋滄槸浜屾湀榪樹細渚濇嵁鏄惁鏄鼎騫碵leap]), 鍦ㄥ懆瀛楁涓婅〃紺烘槦鏈熷叚錛岀浉褰撲簬"7"鎴?SAT"銆傚鏋滃湪"L"鍓嶅姞涓婃暟瀛楋紝鍒欒〃紺鴻鏁版嵁鐨勬渶鍚庝竴涓備緥濡傚湪鍛ㄥ瓧孌典笂璁劇疆"6L"榪欐牱鐨勬牸寮?鍒欒〃紺?#8220;鏈湀鏈鍚庝竴涓槦鏈熶簲"
W 琛ㄧず紱繪寚瀹氭棩鏈熺殑鏈榪戦偅涓伐浣滄棩(鍛ㄤ竴鑷沖懆浜?. 渚嬪鍦ㄦ棩瀛楁涓婅緗?15W"錛岃〃紺虹姣忔湀15鍙鋒渶榪戠殑閭d釜宸ヤ綔鏃ヨЕ鍙戙傚鏋?5鍙鋒濂芥槸鍛ㄥ叚錛屽垯鎵炬渶榪戠殑鍛ㄤ簲(14鍙?瑙﹀彂, 濡傛灉15鍙鋒槸鍛ㄦ湭錛屽垯鎵炬渶榪戠殑涓嬪懆涓(16鍙?瑙﹀彂.濡傛灉15鍙鋒濂藉湪宸ヤ綔鏃?鍛ㄤ竴鑷沖懆浜?錛屽垯灝卞湪璇ュぉ瑙﹀彂銆傚鏋滄寚瀹氭牸寮忎負 "1W",瀹冨垯琛ㄧず姣忔湀1鍙峰線鍚庢渶榪戠殑宸ヤ綔鏃ヨЕ鍙戙傚鏋?鍙鋒鏄懆鍏紝鍒欏皢鍦?鍙蜂笅鍛ㄤ竴瑙﹀彂銆?娉紝"W"鍓嶅彧鑳借緗叿浣撶殑鏁板瓧,涓嶅厑璁稿尯闂?-").
# 搴忓彿(琛ㄧず姣忔湀鐨勭鍑犱釜鍛ㄥ嚑)錛屼緥濡傚湪鍛ㄥ瓧孌典笂璁劇疆"6#3"琛ㄧず鍦ㄦ瘡鏈堢殑絎笁涓懆鍏?娉ㄦ剰濡傛灉鎸囧畾"#5",姝eソ絎簲鍛ㄦ病鏈夊懆鍏紝鍒欎笉浼氳Е鍙戣閰嶇疆(鐢ㄥ湪姣嶄翰鑺傚拰鐖朵翰鑺傚啀鍚堥備笉榪囦簡) 錛?br />
灝忔彁紺猴細
'L'鍜?'W'鍙互涓緇勫悎浣跨敤銆傚鏋滃湪鏃ュ瓧孌典笂璁劇疆"LW",鍒欒〃紺哄湪鏈湀鐨勬渶鍚庝竴涓伐浣滄棩瑙﹀彂錛?br />鍛ㄥ瓧孌電殑璁劇疆錛岃嫢浣跨敤鑻辨枃瀛楁瘝鏄笉鍖哄垎澶у皬鍐欑殑錛屽嵆MON 涓巑on鐩稿悓錛?/tt>
甯哥敤紺轟緥:
0 0 12 * * ? | 姣忓ぉ12鐐硅Е鍙?/td> |
0 15 10 ? * * | 姣忓ぉ10鐐?5鍒嗚Е鍙?/td> |
0 15 10 * * ? | 姣忓ぉ10鐐?5鍒嗚Е鍙?/td> |
0 15 10 * * ? * | 姣忓ぉ10鐐?5鍒嗚Е鍙?/td> |
0 15 10 * * ? 2005 | 2005騫存瘡澶?0鐐?5鍒嗚Е鍙?/td> |
0 * 14 * * ? | 姣忓ぉ涓嬪崍鐨?2鐐瑰埌2鐐?9鍒嗘瘡鍒嗚Е鍙?/td> |
0 0/5 14 * * ? | 姣忓ぉ涓嬪崍鐨?2鐐瑰埌2鐐?9鍒?鏁寸偣寮濮嬶紝姣忛殧5鍒嗚Е鍙? |
0 0/5 14,18 * * ? | 姣忓ぉ涓嬪崍鐨?2鐐瑰埌2鐐?9鍒嗐?8鐐瑰埌18鐐?9鍒?鏁寸偣寮濮嬶紝姣忛殧5鍒嗚Е鍙? |
0 0-5 14 * * ? | 姣忓ぉ涓嬪崍鐨?2鐐瑰埌2鐐?5鍒嗘瘡鍒嗚Е鍙?/td> |
0 10,44 14 ? 3 WED | 3鏈堝垎姣忓懆涓変笅鍗堢殑 2鐐?0鍒嗗拰2鐐?4鍒嗚Е鍙?/td> |
0 15 10 ? * MON-FRI | 浠庡懆涓鍒板懆浜旀瘡澶╀笂鍗堢殑10鐐?5鍒嗚Е鍙?/td> |
0 15 10 15 * ? | 姣忔湀15鍙蜂笂鍗?0鐐?5鍒嗚Е鍙?/td> |
0 15 10 L * ? | 姣忔湀鏈鍚庝竴澶╃殑10鐐?5鍒嗚Е鍙?/td> |
0 15 10 ? * 6L | 姣忔湀鏈鍚庝竴鍛ㄧ殑鏄熸湡浜旂殑10鐐?5鍒嗚Е鍙?/td> |
0 15 10 ? * 6L 2002-2005 | 浠?002騫村埌2005騫存瘡鏈堟渶鍚庝竴鍛ㄧ殑鏄熸湡浜旂殑10鐐?5鍒嗚Е鍙?/td> |
0 15 10 ? * 6#3 | 姣忔湀鐨勭涓夊懆鐨勬槦鏈熶簲寮濮嬭Е鍙?/td> |
0 0 12 1/5 * ? | 姣忔湀鐨勭涓涓腑鍗堝紑濮嬫瘡闅?澶╄Е鍙戜竴嬈?/td> |
0 11 11 11 11 ? | 姣忓勾鐨?1鏈?1鍙?11鐐?1鍒嗚Е鍙?鍏夋鑺? |