java ʱ¼ä´¦ÀíÀà
1. Java¼ÆËãʱ¼äÒÀ¿¿1970Äê1ÔÂ1ÈÕ¿ªÊ¼µÄºÁÃëÊý.
2. DateÀàµÄ¹¹Ô캯ÊýDate()·µ»Ø´ú±íµ±Ç°´´½¨µÄʱ¿ÌµÄ¶ÔÏó¡£DateµÄ·½·¨getTime()·µ»ØÒ»¸ölongÖµÔÚÊýÖµ
ÉϵÈÓÚ1970Äê1ÔÂ1ÈÕ֮ǰ»òÖ®ºóµÄʱ¿Ì¡£
3. DateFormatÀàÓÃÀ´×ª»»Dateµ½String,·´Ö®ÒàÈ»¡£¾²Ì¬·½·¨getDateInstance()·µ»ØDateFormatµÄȱʡ¸ñ
ʽ£»getDateInstance(DateFormat.FIELD)·µ»ØÖ¸¶¨µÄDateFormat¶ÔÏó¸ñʽ¡£Format(Date d)·½·¨·µ»Ø
String±íʾÈÕÆÚ£¬ÀýÈ磢January 1,2002.£¢·´¹ýÀ´£¬parse(String s)·½·¨·µ»ØÒÔ²ÎÊý×Ö·û´®±íʾµÄDate¶Ô
Ïó¡£
4. format()·½·¨·µ»ØµÄ×Ö·û´®¸ñʽ¸ù¾Ý²»Í¬µØÇøµÄʱ¼äÉèÖöøÓÐËù²»Í¬¡£
5. GregorianCalendearÀàÓÐÁ½¸öÖØÒªµÄ¹¹Ô캯Êý£ºGregorianCalerdar(),·µ»Ø´ú±íµ±Ç°´´½¨Ê±¼äµÄ¶ÔÏó£»
GregorianCalendar(int year,int month,int date)·µ»Ø´ú±íÈÎÒâÈÕÆڵĶÔÏó¡£GregorianCalendarÀàµÄ
getTime()·½·¨·µ»ØÈÕÆÚ¶ÔÏó¡£Add(int field,int amount)·½·¨Í¨¹ý¼Ó»ò¼õʱ¼äµ¥Î»£¬ÏóÌìÊý£¬ÔÂÊý»òÄêÊý
À´¼ÆËãÈÕÆÚ¡£
GregorianCalendarºÍ ʱ¼ä
Á½¸öGregorianCalendarµÄ¹¹Ô캯Êý¿ÉÒÔÓÃÀ´´¦Àíʱ¼ä¡£Ç°Õß´´½¨Ò»¸ö±íʾÈÕÆÚ£¬Ð¡Ê±ºÍ·ÖÖӵĶÔÏó£º
GregorianCalendar(int year, int month, int date, int hour, int minute)
µÚ¶þ¸ö´´½¨Ò»¸ö±íʾһ¸öÈÕÆÚ£¬Ð¡Ê±£¬·
Ïà¹ØÎĵµ£º
JDK1.5ÖУ¬StringÀàÐÂÔöÁËÒ»¸öºÜÓÐÓõľ²Ì¬·½·¨String.format():
format(Locale l, String format, Object... args) ʹÓÃÖ¸¶¨µÄÓïÑÔ»·¾³¡¢¸ñʽ×Ö·û´®ºÍ²ÎÊý·µ»ØÒ»¸ö¸ñʽ»¯×Ö·û´®¡£
format(String format, Object... args) ʹÓÃÖ¸¶¨µÄ¸ñʽ×Ö·û´®ºÍ²ÎÊý·µ»ØÒ»¸ö¸ñʽ»¯×Ö·û´®¡£
¾Ù¼¸¸öÕâ¸ö·½·¨ÊµÓõÄÀý×Ó(×¢ÊÍÊÇÊä³ö½á¹û)£º ......
Ìæ»»×Ö½ÚÊý×éÁ÷ºÍ¹ÜµÀÁ÷
ÎĵµÑ¡Ïî
<tr
valign="top"><td width="8"><img alt="" height="1" width="8"
src="//www.ibm.com/i/c.gif"/></td><td width="16"><img alt="" width="16"
he ......
ÔÚJavaÖÐÓÐʱ»áÓö¼ûÂÒÂëµÄÇé¿ö£¬ÕâÀïÌṩÁ˼¸ÖÖת»»·½·¨
£¨Ò»£©JavaÖеıàÂëת»»
£¨¶þ£©¿ÉÒÔÔÚweb.xmlÎļþÖÐÅäÖõÄ×Ô¼ºÐ´µÄ¹ýÂËÆ÷
µÚÒ»ÖÖ·½·¨×î¼òµ¥Ò²×î·½±ã£¬µ«ÊÇÖ»ÄÜÓÃÔÚÉÙÁ¿µÄµØ·½»òÊÇż¶ûÒ»Á½´ÎתÂ룬Èç¹û´óÃæ»ýʹÓþͲ»·½±ãÁË£¬Ò²´ó´óÔö¼ÓÁ˱àÂëÁ¿£¬Èç¹ûÄãµÄÏîÄ¿ÀïûÓÐÓÃSpringµÄ¿ò¼Ü¿ª ......
1. SSOÐèÇó
µ¥µãµÇ¼£¨Single Sign On, SSO£©ÊÇÆóÒµÓ¦Óü¯³ÉÖÐ×î³£¼ûµÄÐèÇó¡£Ò칹ϵͳ¼äÍùÍù¶¼Óи÷×ÔµÄÓû§¹ÜÀíºÍÉí·ÝÑéÖ¤»úÖÆ£¬Îª
±ÜÃâÓû§ÔÚ½øÐÐϵͳÇл»Ê±Æµ·±ÊäÈëÓû§ÃûºÍÃÜÂ룬Òò´Ë±ØÐëҪʵÏÖµ¥µãµÇ¼¡£
2. SSOÔÀí
˵µ½SSOµÄÔÀí£¬ÏȵÃ˵һ°ãWebÓ¦ÓõÄÉí·ÝÑéÖ¤ÔÀí¡£WebÉí·ÝÑéÖ¤Ö®ËùÒÔÄܳÉΪÎÊÌâÖ÷ÒªÔÚÓÚHTTPÐÒé ......
Ò»°ãÇé¿ö»ñµÃ±¾µØËùÓеÄipµØÖ·£º
try {
InetAddress address = InetAddress.getLocalHost();
System.out.println(address.getHostAddress());
String name = address.getHostName();
System.out.println(name);
InetAddress[] addresses = &nbs ......