锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品资源在线,亚洲av永久中文无码精品综合 ,亚洲精品视频在线http://www.tkk7.com/jjshcc/category/46569.html妗戝反钁¤緲昏瘧宸ヤ綔瀹ゆ槸騫垮窞甯傛渶涓撲笟钁¤悇鐗欒緲昏瘧鏈烘瀯-www.puyufanyi.com-嬈㈣繋瀵繪壘Java,As400,Mainframe鐨勭寧澶磂ric_cc#qq.ccom(鎶?鎹㈡垚@)zh-cnTue, 19 Aug 2014 06:49:02 GMTTue, 19 Aug 2014 06:49:02 GMT60鍦╳eb.xml涓氳繃contextConfigLocation閰嶇疆springhttp://www.tkk7.com/jjshcc/archive/2014/08/15/416986.htmlEric_jiangEric_jiangFri, 15 Aug 2014 02:11:00 GMThttp://www.tkk7.com/jjshcc/archive/2014/08/15/416986.htmlhttp://www.tkk7.com/jjshcc/comments/416986.htmlhttp://www.tkk7.com/jjshcc/archive/2014/08/15/416986.html#Feedback1http://www.tkk7.com/jjshcc/comments/commentRss/416986.htmlhttp://www.tkk7.com/jjshcc/services/trackbacks/416986.html

spring鐨?閰嶇疆鏂囦歡鍦ㄥ惎鍔ㄦ椂錛屽姞杞界殑鏄痺eb-info鐩綍涓嬬殑applicationContext.xml,
榪愯鏃朵嬌鐢ㄧ殑鏄痺eb-info/classes鐩綍涓嬬殑applicationContext.xml銆?br />
閰嶇疆web.xml浣胯繖2涓礬寰勪竴鑷達細

<context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>/WEB-INF/classes/applicationContext.xml</param-value>
 </context-param>

澶氫釜閰嶇疆鏂囦歡鐨勫姞杞?br /><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>

contextConfigLocation 鍙傛暟瀹氫箟浜嗚瑁呭叆鐨?Spring 閰嶇疆鏂囦歡銆?/p>

]]>
springmvc涓幏寰梤equest鏂規硶http://www.tkk7.com/jjshcc/archive/2014/08/14/416954.htmlEric_jiangEric_jiangThu, 14 Aug 2014 07:54:00 GMThttp://www.tkk7.com/jjshcc/archive/2014/08/14/416954.htmlhttp://www.tkk7.com/jjshcc/comments/416954.htmlhttp://www.tkk7.com/jjshcc/archive/2014/08/14/416954.html#Feedback0http://www.tkk7.com/jjshcc/comments/commentRss/416954.htmlhttp://www.tkk7.com/jjshcc/services/trackbacks/416954.html

鐢變簬鏄嬌鐢?strong style="color: black; background-color: #ffff66; ">spring mvc鏉ュ仛欏圭洰錛屽洜姝よ劚紱諱簡HttpServletRequest浣滀負鍙傛暟錛屼笉鑳藉鐩存帴浣跨敤request錛岃鎯充嬌鐢╮equest鍙互浣跨敤涓嬮潰鐨勬柟娉曪細

鍦╳eb鐐箈ml涓厤緗竴涓洃鍚?/p>

<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();


Eric_jiang 2014-08-14 15:54 鍙戣〃璇勮
]]>
<context:component-scan>浣跨敤璇存槑http://www.tkk7.com/jjshcc/archive/2014/08/13/416897.htmlEric_jiangEric_jiangWed, 13 Aug 2014 03:22:00 GMThttp://www.tkk7.com/jjshcc/archive/2014/08/13/416897.htmlhttp://www.tkk7.com/jjshcc/comments/416897.htmlhttp://www.tkk7.com/jjshcc/archive/2014/08/13/416897.html#Feedback0http://www.tkk7.com/jjshcc/comments/commentRss/416897.htmlhttp://www.tkk7.com/jjshcc/services/trackbacks/416897.html

 鍦▁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>

]]>
Spring--quartz涓璫ronExpression閰嶇疆璇存槑http://www.tkk7.com/jjshcc/archive/2014/07/31/416409.htmlEric_jiangEric_jiangThu, 31 Jul 2014 07:32:00 GMThttp://www.tkk7.com/jjshcc/archive/2014/07/31/416409.htmlhttp://www.tkk7.com/jjshcc/comments/416409.htmlhttp://www.tkk7.com/jjshcc/archive/2014/07/31/416409.html#Feedback0http://www.tkk7.com/jjshcc/comments/commentRss/416409.htmlhttp://www.tkk7.com/jjshcc/services/trackbacks/416409.html
瀛楁 鍏佽鍊?/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 * * ? 20052005騫存瘡澶?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 WED3鏈堝垎姣忓懆涓変笅鍗堢殑 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鍒嗚Е鍙?鍏夋鑺?



]]>
Spring涓厤緗甅YSQLhttp://www.tkk7.com/jjshcc/archive/2010/10/10/334158.htmlEric_jiangEric_jiangSun, 10 Oct 2010 01:55:00 GMThttp://www.tkk7.com/jjshcc/archive/2010/10/10/334158.htmlhttp://www.tkk7.com/jjshcc/comments/334158.htmlhttp://www.tkk7.com/jjshcc/archive/2010/10/10/334158.html#Feedback0http://www.tkk7.com/jjshcc/comments/commentRss/334158.htmlhttp://www.tkk7.com/jjshcc/services/trackbacks/334158.html     <bean id="dataSource"
        class="org.apache.commons.dbcp.BasicDataSource"
        destroy-method="close">
        <property name="driverClassName" value="com.mysql.jdbc.Driver" />
        <!-- 瑙e喅鏁版嵁搴撲腑鍑虹幇涔辯爜鐨勬柟娉曞湪鏁版嵁搴撳悕瀛楀悗闈㈠姞?useUnicode=true&amp;characterEncoding=utf-8-->
        <property name="url" value="jdbc:mysql://localhost:3306/game?useUnicode=true&amp;characterEncoding=utf-8" />
        <property name="username" value="root" />
        <property name="password" value="root" />
    </bean>


]]>
Spring涓厤緗甋QLServer2005http://www.tkk7.com/jjshcc/archive/2010/10/10/334157.htmlEric_jiangEric_jiangSun, 10 Oct 2010 01:52:00 GMThttp://www.tkk7.com/jjshcc/archive/2010/10/10/334157.htmlhttp://www.tkk7.com/jjshcc/comments/334157.htmlhttp://www.tkk7.com/jjshcc/archive/2010/10/10/334157.html#Feedback1http://www.tkk7.com/jjshcc/comments/commentRss/334157.htmlhttp://www.tkk7.com/jjshcc/services/trackbacks/334157.html             destroy-method="close">
            <property name="driverClass">
                <value>com.microsoft.sqlserver.jdbc.SQLServerDriver</value>
            </property>
            <property name="jdbcUrl">
                <value>jdbc:sqlserver://localhost:1433;databaseName=databaseName</value>
            </property>
            <property name="user">
                <value>UserName</value>
            </property>
            <property name="password">
                <value>123456</value>
            </property>
            <property name="minPoolSize">
                <value>15</value>
            </property>
            <property name="acquireIncrement">
                <value>5</value>
            </property>
            <property name="maxPoolSize">
                <value>25</value>
            </property>
        </bean>

]]>
主站蜘蛛池模板: 亚洲AV噜噜一区二区三区| 2020天堂在线亚洲精品专区| 香蕉视频在线观看免费| 日本v片免费一区二区三区| 国产亚洲精品影视在线| 青青久在线视频免费观看| 亚洲国产成人超福利久久精品| 无码人妻一区二区三区免费看| 亚洲av最新在线网址| 久久伊人免费视频| 亚洲黄色免费电影| 国产片AV片永久免费观看| 亚洲国产成人va在线观看网址| 一二三四视频在线观看中文版免费| 亚洲乱码一二三四区乱码| 免费无码黄动漫在线观看| 久久精品国产亚洲AV| 4338×亚洲全国最大色成网站| 两性色午夜免费视频| 亚洲va在线va天堂va四虎 | 亚洲国语在线视频手机在线| 最新黄色免费网站| 亚洲欧洲精品成人久久曰| 国产成人精品男人免费| 久久精品成人免费国产片小草| 亚洲AV永久精品爱情岛论坛| 希望影院高清免费观看视频| 朝桐光亚洲专区在线中文字幕| 亚洲天堂免费在线视频| 97在线视频免费| 亚洲AV永久无码精品放毛片| 亚洲中文久久精品无码ww16| **一级一级毛片免费观看| 亚洲AV无码国产剧情| 亚洲va无码手机在线电影| 欧亚精品一区三区免费| 一级一片免费视频播放| 亚洲精品国产肉丝袜久久| 免费a级毛片无码a∨性按摩| 无码精品一区二区三区免费视频| 亚洲日韩精品无码AV海量|