javaÖÐÊý¾Ý¿âµÄ±¸·ÝÓ뻹Ô
Ê×ÏÈ£¬ÉèÖÃmysqlµÄ»·¾³±äÁ¿£¨ÔÚpathÖÐÌí¼Ó%MYSQL_HOME%\bin£©£¬ÖØÆôµçÄÔ¡£
ÍêÕû´úÂ룺
/**
* @param args
*/
public static void main(String[] args) {
/*
* ±¸·ÝºÍµ¼ÈëÊÇÒ»¸ö»¥ÄæµÄ¹ý³Ì¡£
* ±¸·Ý£º³ÌÐòµ÷ÓÃmysqlµÄ±¸·ÝÃüÁ¶Á³ö¿ØÖÆ̨ÊäÈëÁ÷ÐÅÏ¢£¬Ð´Èë.sqlÎļþ£»
* µ¼È룺³ÌÐòµ÷ÓÃmysqlµÄµ¼ÈëÃüÁ°Ñ´Ó.sqlÎļþÖжÁ³öµÄÐÅϢдÈë¿ØÖÆ̨µÄÊä³öÁ÷
* ×¢Ò⣺´Ëʱ¶¨Ïò·û">"ºÍ"<"ÊDz»ÄÜÓõÄ
*/
backup();
load();
}
/**
* ±¸·Ý¼ìÑéÒ»¸ösqlÎļþÊÇ·ñ¿ÉÒÔ×öµ¼ÈëÎļþÓõÄÒ»¸öÅжϷ½·¨£º°Ñ¸ÃsqlÎļþ·Ö±ðÓüÇʱ¾ºÍultra
* edit´ò¿ª£¬Èç¹û¿´µ½µÄÖÐÎľùÕý³£Ã»ÓÐÂÒÂ룬Ôò¿ÉÒÔÓÃÀ´×öµ¼ÈëµÄÔ´Îļþ£¨²»¹ÜsqlÎļþµÄ±àÂë¸ñʽÈçºÎ£¬Ò²²»¹ÜdbµÄ±àÂë¸ñʽÈçºÎ£©
*/
public static void backup() {
try {
Runtime rt = Runtime.getRuntime();
// µ÷Óà mysql µÄ cmd:
Process child = rt
.exec("mysqldump -u root --set-charset=utf8 bjse act_obj");// ÉèÖõ¼³ö±àÂëΪutf8¡£ÕâÀï±ØÐëÊÇutf8
// °Ñ½ø³ÌÖ´ÐÐÖеĿØÖÆ̨Êä³öÐÅϢдÈë.sqlÎļþ£¬¼´Éú³ÉÁ˱¸·ÝÎļþ¡£×¢£ºÈç¹û²»¶Ô¿ØÖÆ
Ïà¹ØÎĵµ£º
ÍøÉÏJAVAµ÷ÓÃDLLµÄÎÄÕ²»ÉÙÁË£¬µ«·¢ÏÖÓÐЩ»¹ÊÇÓÐÎÊÌâ¡£¸ÕºÃÑо¿ÁËһϣ¬ÉÔ×ö¸ü¸Äºó£¬ÔÚVC2005ÉϲâÊÔͨ¹ý£¬£¨ReleaseºÍDebug°æ±¾¾ù¿É£©¡£
¸ü¸Äµã£º
1¡¢#include "jni.h"
2¡¢½«jni_md.hÖеģº#define JNICALL __stdcall±äΪ£º#define JNICALL __cdecl (º¯ÊýʹÓõÄÓ¦¸ÃÊÇcÓïÑÔµÄȱʡµ÷Ó÷½Ê½_cdecl·½Ê½£¬·ñÔòDLLÀ ......
import java.util.prefs.*;
public class Registery {
String[] keys = {"oa"};
String[] values = {"reg"};
//°ÑÏàÓ¦µÄÖµ´¢´æµ½±äÁ¿ÖÐÈ¥
public void writeValue() { ......
×î½üѧϰjavaµÄIO²Ù×÷£¬ÏÖÕûÀíÈçÏÂ
1 ÊäÈëÊä³ö
javaµÄ¿â½«³ÌÐòÓëÊäÈëÓйصÄÀ඼´ÓInputStream¼Ì³Ð£¬ÓëÊä³öÓйصÄÀ඼´ÓOutStream¼Ì³Ð¡£
ÒÔǰûÓÐÕÆÎÕµÄÏà¹ØÀà SequenceInputStream ½«Á½¸ö»ò¸ü¶àµÄinputStream ת»»³Éµ¥¸ö¶ÔÏóʹÓá£
2 ÔöÌíÊôÐÔºÍÓÐÓõĽӿÚ
×°ÊÎÆ÷ £º ÀûÓòã´Î»¯¶ÔÏó¶¯Ì¬Í¸Ã÷ ......
ºÃ¶à´óÐ͵ÄÆóÒµÏîÄ¿¶¼ÒªÓõ½¸ß¼¶JDBCÁ¬½ÓÊý¾Ý¿âÅäÖø߼¶JDBCʵÀýÈçÏ£º
µÚÒ»£ºÅäÖÃTomcatϵÄconfÎļþ¼ÐϵÄcontext.xmlÎļþ
<?xml version='1.0' encoding='utf-8'?>
<Context>
<Resource name="jdbc/Ãû³Æ" auth="Container" type="javax.sql.DataSource"
maxActive="10" maxIdle=" ......
¡¡¡¡inkfish·Ò룬ÇëÎðÉÌÒµÐÔÖÊתÔØ£¬×ªÔØÇë×¢Ã÷À´Ô´£¨http://blog.csdn.net/inkfish
£©¡£±¾ÎÄÊÇÎÒѧϰJUELͬʱ£¬¶ÔÔÍøÕ¾½øÐеļòµ¥µÄ·Ò룬ÔÍøÕ¾µØÖ·£ºhttp://juel.sourceforge.net/guide/start.html
¡£
¿ìËÙÈëÃÅ
¡¡¡¡JUEL
·¢Ðаæ°üº¬ÏÂÃæһЩjarÎļþ£º£¨À´Ô´£ºhttp://blog.csdn.net/inkfish£©
¡¡¡¡1.juel-api-2.2 ......