tomcat×Ô¶¯¼ÓÔØÐ޸ĺóµÄjavaÀà
ʹÓõ÷ÊÔģʽ¼´¿É¡£
½øTOMCATµÄmanager¿ØÖÆ̨£¬¿ÉÒÔ¶ÔÖ¸¶¨µÄÐéÄâĿ¼½øÐпØÖÆ£¨¼ÓÔØ£¬ÖØÔØ£¬Ð¶ÔØ£©£¬±ÈÖØÆô¿ìµÄ¶à£¬ÔÚTOMCATµÄĬÈÏÊ×Ò³ÉÏÓÐÁ´½Ó¡£
============================================================================================
ÎÒÃÇÔÚ¿ª·¢µÄ¹ý³Ì¾³£ÐèÒªµ÷ÊÔ£¬Ò²³£³£ÐèÒªÐÞ¸ÄʹÓõÄÀàºÍservlet£¬Èç¹ûÊÇʹÓÃwar·½Ê½tomcat¿ÉÒÔ×Ô¶¯ÖØз¢²¼£¬µ«ÊÇͨ³£Çé¿öÏÂÎÒÃÇʹÓÃtomcat¿ª·¢µÄʱºò²»»á½øÐдò°ü·¢²¼£¬ÄÇôÈçºÎÈÃtomcat×Ô¶¯¼ÓÔØÄãÐ޸ĹýÒÔºó¿½±´µ½webappsµÄij¸öÓ¦ÓÃÖеÄÀàÄØ£¿ÆäʵºÜ¼òµ¥£¬¶ÔÓÚij¸öÓ¦Óã¬ÎÒÃÇÒ»°ã»áÔÚtomcatµÄÅäÖÃÎļþserver.xmlΪËü½¨Ò»¸öcontext£¬ÎªÓ¦ÓÃÅäÖÃÊý¾ÝÔ´µÈ£¬ÎÒÃÇÐÞ¸ÄÕâ¸öÓ¦ÓõÄcontext¾Í¿ÉÒÔ´ïµ½ÈÃtomcat×Ô¶¯¼ÓÔصÄÄ¿µÄ£º
ÀýÈ磺
<Context path="/test" docBase="test"
debug="0" privileged="true" reloadable="true" >
</Context>
×îÖØÒªµÄ¾ÍÊÇ reloadable="true"ÁË¡£
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
Îļþ´ò¿ªÊ±ºòÊÇͨ¹ýÎļþÍ·À´È·¶¨ÎļþµÄ±àÂë
StreamReader sr=new StreamReader(@"F:\cym\temp\1.txt");
sr.CurrentEncoding //·µ»Ø±àÂë
ÊÀ½çÉϵĸ÷µØÇø¶¼Óб¾µØµÄÓïÑÔ¡£µØÇø²îÒìÖ±½Óµ¼ÖÂÁËÓïÑÔ»·¾³µÄ²îÒì¡£ÔÚ¿ª·¢Ò»¸ö¹ú¼Ê»¯³ÌÐòµÄ¹ý³ÌÖУ¬´¦ÀíÓïÑÔÎ ......
public List createArrayList(String FilePath,String FileName){
List list =new ArrayList();
FileName=FilePath+"\\"+FileName;
File file=new File(FileName);
String encoding="GBK";//·ÀÖ¹ÂÒÂë Õâ±àÂëÐèÒª¸ù¾Ý×Ô¼ºµÄ²Ù ......
package chape8;
import java.math.BigDecimal;
/**
* 8-48
* Èç¹ûÏëÒªÖªµÀ¾«È·µÄ´ð°¸£¬¾ÍÒª±ÜÃâʹÓÃdoubleºÍfloat
¶ÔÓÚ½ðÈÚÐÐÒµÀ´Ëµ£¬¶ÔÊý¾ÝµÄÑÏÕûÐÔÒªÇóÊǺܸߵģ¬²»ÈÝ°ëµãÂí»¢£¬
ÄÇ´ó¼Ò¶¼ÖªµÀÔÙÎÒÃǵÄJavaÓïÑÔÀïÃæÓÐÁ½¸ö¸¡µãÊýÀàÐ͵ıäÁ¿floatºÍdouble£¬
¿ÉÄÜ´ó¼Ò»áÈÏΪËûÃǵľ«¶È¶ÔÓÚ½ðÈÚÐÐÒµÕâÑù¶ÔÊý×Öà ......