ÈçºÎÒÔJavaʵÏÖÍøÒ³½Øͼ¼¼Êõ
½ñÌì¿´µ½Ä³ÍøÓѹØÓÚ“ÈçºÎÒÔJavaʵÏÖÍøÒ³½Øͼ¼¼Êõ”µÄ×ÉѯÌû£¬ÓÉÓÚ³öÏÖ¸Ã×ÉѯµÄµØµã·Ç³£²»ÊʺϽϳ¤»Ø¸´£¬¹ÊÒÔ²©ÎÄÐÎʽ»Ø´ð¡£
ÊÂʵÉÏ£¬Èç¹ûÄúÏëÒÔJavaʵÏÖÍøÒ³½Øͼ£¬Ò²¾ÍÊÇ“ÊäÈëÒ»¶ÎÍøÖ·£¬¼¸ÃëÖÓ¹ýºó¾ÍÄܽØÈ¡Ò»ÕÅÍøÒ³ËõÂÔͼ”µÄЧ¹û¡£ÄÇô£¬ÄúÖÁÉÙÓÐ3ÖÖ·½Ê½¿ÉÒÔÑ¡Ôñ¡£
1¡¢×îÖ±½ÓµÄ·½Ê½——ʹÓÃRobot
·½·¨Ïê½â£º¸Ã·½·¨ÀûÓÃRobatÌṩµÄÇ¿´ó×ÀÃæ²Ù×÷ÄÜÁ¦£¬Ó²ÐÔµ÷ÓÃä¯ÀÀÆ÷´ò¿ªÖ¸¶¨ÍøÒ³£¬²¢½«ÍøÒ³ÐÅÏ¢±£´æµ½±¾µØ¡£
ÓÅÊÆ£º¼òµ¥Ò×Ó㬲»ÐèÒªÈκεÚÈý·½²å¼þ¡£
ȱµã£º²»ÄÜͬʱ´¦Àí´óÁ¿Êý¾Ý£¬¼¼Êõº¬Á¿¹ýµÍ£¬ÊôÓÚÓ¦¼±Ðͼ¼ÇÉ¡£
ʵÏÖ·½·¨£ºÊ¹ÓÃÈçÏ´úÂë¼´¿É¡£
view plain
copy to clipboard
print
?
public
static
void
main(String[] args)
throws
MalformedURLException,
IOException, URISyntaxException, AWTException {
//´Ë·½·¨½öÊÊÓÃÓÚJdK1.6¼°ÒÔÉÏ°æ±¾
Desktop.getDesktop().browse(
new
URL(
"http://google.com/intl/en/"
).toURI());
Robot robot = new
Robot();
robot.delay(10000
);
Dimension d = new
Dimension(Toolkit.getDefaultToolkit().getScreenSize());
int
width = (
int
) d.getWidth();
int
height = (
int
) d.getHeight();
//×î´ó»¯ä¯ÀÀÆ÷
robot.keyRelease(KeyEvent.VK_F11);
robot.delay(2000
);
Image image = robot.createScreenCapture(new
Rectangle(
0
,
0
, width,
hei
Ïà¹ØÎĵµ£º
private void postMethod(String url) throws IOException
{
url = "http://www.newsmth.net/bbslogin2.php";
PostMethod postMethod = new PostMethod(url);
// ÌîÈë¸÷¸ö±íµ¥ÓòµÄÖµ
NameValuePair[] data = { new NameValuePair("id ......
ÕâÊÇÎÒµÚÒ»´Îд¼¼Êõ²©ÎÄ£¬Ï²»¶´ó¼ÒÌá³ö±¦¹óÒâ¼û¡£ÕâƪÎÄÕÂÖ÷ÒªÏë½²Èý¸öÎÊÌâ¡£
µÚÒ»£ºHibernateºÍJDBCµÄÇø±ð¡£
×÷Ϊjava³ÌÐòÔ±£¬ÎÒ¾õµÃŪÇå³þHibernateÓëJDBCµÄÇø±ð£¬²»½ö¶Ô´òºÃÔúʵµÄ»ù±¾¹¦±È½ÏÖØÒª£¬¾ÍÊÇÒÔºóµÄѧϰ£¬¿ª·¢Ò²¾ßÓÐÏ൱µÄ½è¼øÒâÒå¡£¿ÉϧµÄÊÇÏÖÔÚÓкÃЩ³ÌÐòÔ±²»Ð¼ÓÚѧ ......
ͨ³£µÄ¹ÛÄîÈÏΪ£¬ÊÂÎñ½öÓëÊý¾Ý¿âÏà¹Ø¡£
ÊÂÎñ±ØÐë·þ´ÓISO/IECËùÖƶ¨µÄACIDÔÔò¡£ACIDÊÇÔ×ÓÐÔ£¨atomicity£©¡¢Ò»ÖÂÐÔ£¨consistency£©¡¢¸ôÀëÐÔ
£¨isolation£©ºÍ³Ö¾ÃÐÔ£¨durability£©µÄËõд¡£ÊÂÎñµÄÔ×ÓÐÔ±íʾÊÂÎñÖ´Ðйý³ÌÖеÄÈκÎʧ°Ü¶¼½«µ¼ÖÂÊÂÎñËù×öµÄÈκÎÐÞ¸ÄʧЧ¡£Ò»ÖÂÐÔ±íʾ
µ±ÊÂÎñÖ´ÐÐʧ°Üʱ£¬ËùÓб»¸ÃÊÂÎñÓ°ÏìµÄÊý¾Ý ......
·´Éä»úÖÆ:ËùνµÄ·´Éä»úÖƾÍÊÇjava
ÓïÑÔÔÚÔËÐÐʱӵ
ÓÐÒ»Ïî×Ô¹ÛµÄÄÜÁ¦¡£Í¨¹ýÕâÖÖÄÜÁ¦¿ÉÒÔ³¹µ×µÄÁ˽â×ÔÉíµÄÇé¿öΪÏÂÒ»²½µÄ¶¯×÷×ö×¼±¸¡£ÏÂÃæ¾ßÌå½éÉÜÒ»ÏÂjava
µÄ·´Éä»úÖÆ¡£ÕâÀïÄ㽫µß¸²ÔÀ´¶ÔjavaµÄÀí½â¡£
JavaµÄ·´Éä»úÖƵÄʵÏÖÒª½èÖúÓÚ4¸öÀࣺclass£¬Constructor£¬Field£¬Method£»ÆäÖÐclass´ú±íµÄʱÀà¶Ô
Ïó£¬Constructo ......
Ãô½Ý¿ª·¢Öбàд¸ßÖÊÁ¿Java´úÂë
Ãô½Ý¿ª·¢µÄÀíÄîÒѾÁ÷ÐÐÁ˺ܳ¤µÄʱ¼ä£¬ÔÚÃô½Ý¿ª·¢ÖеĿª·¢µü´ú½×¶ÎÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ýÎå¸ö²½Ö裬À´ÓÐЧµÄÌá¸ßÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿¡£
JavaÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ÓÉÓÚ¿ª·¢ÈËÔ±µÄ¾Ñé¡¢Java´úÂë±àдϰ¹ß£¬ÒÔ¼°È±·¦Í³Ò»µÄ±ê×¼ºÍ¹ÜÀíÁ÷³Ì£¬ÍùÍùµ¼ÖÂÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿½Ï²î£¬ÄÑÓÚά »¤£¬ÐèÒª½Ï´óµÄ² ......