java µ½Êý¾Ý¿â
public ActionForward backUpAction(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
Calendar cDay = Calendar.getInstance();
SimpleDateFormat myf = new SimpleDateFormat("yyyyMMddHHmmss");
String day = myf.format(cDay.getTime());
// »ñµÃConstantÖж¨ÒåµÄÊý¾Ý¿â±¸·ÝÎļþ´æ·Å·¾¶£¬¸ñʽÈ磺
// public static final String DataBaseBackUpPath = "D:\\sOADB\\";
String outputFile = Constant.DataBaseBackUpPath;
// Èç¹û·þÎñÆ÷¶ËÓ²ÅÌÉϲ»´æÔÚoutputFileĿ¼£¬Ôò´´½¨Õâ¸öĿ¼
File mydir = new File(outputFile);
if (!(mydir.exists())) {
mydir.mkdir();
}
// ±¸·ÝÎļ
Ïà¹ØÎĵµ£º
½ñÌìÔÚÑо¿JAX-WS£¬Å¼È»·¢ÏÖjava6µÄÖÐÎÄAPIÔÚjavax.xml.ws°ü϶ªÁËһЩannotation£¬Ò²ÊǺÜżȻ·¢ÏÖÕâÖÖÇé¿ö£¬ÎÒÔÚдjava´úÂ룬·¢ÏÖ¿ÉÒÔÓõÄannotation£¬µ«ÊÇÔÚÖÐÎÄapiÀïÕÒ²»µ½£¬ºóÀ´ÕÒÁËÒ»ÏÂÓ¢Îİæzpi£¬²Å·¢ÏÖÖÐÎİ涪ÁËһЩannotation£¬ÔÝʱ²»Çå³þ±ðµÄ°üÀïÓÐûÓжªÊ§µÄÇé¿ö¡£ÎÒÊÇʹÓÃÔÚÏßAPI£¬ºóÀ´·¢ÏÖÏÂÔØ°æºÍÔÚÏß°æÒ»Ñù¶ ......
java ÓÃrmi±àд¿Í»§/·þÎñ³ÌÐò
³öÏÖaccess denied ÎÊÌâ
ÒòΪ²»ÖªµÀÔõôÅäÖà ²ßÂÔÎļþ ¾Í½«¿Í»§¶ËµÄSystem.setSecurityManager(new RMISecurityManager())ɾÁË£¬ÔËÐÐjava ProductClient
³É¹¦£¡
ÅäÖòßÂÔÎļþµÃÖ®ºó²ÅŪÀ² ......
ÁκéÁÁ 2010/4/13
¸ÅÊö
ÔÚʵ¼ÊµÄÏîÄ¿ÖУ¬¿ÉÄÜ»áÓöµ½ÕâÑùµÄÎÊÌ⣺A·þÎñÆ÷ÉϵÄÓ¦ÓóÌÐòÐèÒª·ÃÎÊB·þÎñÆ÷ÉϵÄaccessÊý¾Ý¿â(¿ÉÒÔʹÓÃÐéÄâ»úÄ£ÄâA¡¢B·þÎñÆ÷½øÐвâÊÔ)¡£¶øaccessÊý¾Ý¿âÊÇÎļþÀàÐ͵쬲»Í¬¼ÆËã»ú¼äÐèÒªÖ¸¶¨Îļþ·ÃÎÊȨÏÞ£¬Ôö¼ÓÁ˳ÌÐòµÄ¸´ÔÓ¶È¡£±¾ÎĽ«´ÓÒ»¸öʵÀýÀ´½éÉÜÒ»ÖÖ¼òµ¥ÊµÓõķ½·¨¡£¸ÃʵÀýʹÓõķ½·¨À´×ÔInte ......
´ÓÍøÂçÕª³µ½µÄ½â¾ö·½·¨——
½â¾ö·½·¨¶þ£º
Á¬½Ómysqlʱ(ÎÞÂÛÔÚ´Ómysql¶Á»¹ÊÇÈ¡Êý¾ÝµÄÇé¿ö)£¬Ö¸¶¨Ê¹ÓõıàÂ뷽ʽΪutf-8£¬¾ßÌå´úÂëÈçÏÂ
//×°ÔØmysql-jdbcÇý¶¯
Class.forName("com.mysql.jdbc.Driver" ......