18luck򲻿

ÿҪ6̴һսָȾμԷסԺҺʹ࣬ҲԶˡΪˣҵרҵͷѧԺʼˡгӪVPԺԺʦһýС࣬ϴʼûǮûԴ£ҵ2깫˾ֵǧû100Pre-A420İ⾭СCEO׾Сϴʼǿת죬Ѵ0100ûýӪܷ0ýӪɨ룬ѧϰý壨ɨ޷ӿͷ΢ţcyzonebangע޷򡱣1γ̰23ķԭ399Ԫҵûר199ԪԺ󽲵ĿĿ¼ṹ£뷶ʹservletContextȡԴļpackagegacl.servlet.study;?importjava.io.FileInputStream;importjava.io.FileNotFoundException;importjava.io.IOException;importjava.io.InputStream;importjava.text.MessageFormat;importjava.util.Properties;importjavax.servlet.ServletException;importjavax.servlet.http.HttpServlet;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;?/**?*ʹservletContextȡԴļ?*??*@authorgacl?*??*/publicclassServletContextDemo6extendsHttpServlet{???publicvoiddoGet(HttpServletRequestrequest,HttpServletResponseresponse)??????throwsServletException,IOException{?????/**?????*response.setContentType("text/html;charset=UTF-8");ĿǿUTF-8н룻?????*Ͳ?????*/????response.setHeader("content-type","text/html;charset=UTF-8");????readSrcDirPropCfgFile(response);//ȡsrcĿ¼µpropertiesļ????response.getWriter().println("");????readWebRootDirPropCfgFile(response);//ȡWebRootĿ¼µpropertiesļ????response.getWriter().println("");????readPropCfgFile(response);//ȡsrcĿ¼µdb.configеdb3.propertiesļ????response.getWriter().println("");????readPropCfgFile2(response);//ȡsrcĿ¼µgacl.servlet.studyеdb4.propertiesļ???}???/**???*ȡsrcĿ¼µgacl.servlet.studyеdb4.propertiesļ???*@paramresponse???*@throwsIOException???*/??privatevoidreadPropCfgFile2(HttpServletResponseresponse)??????throwsIOException{????InputStreamin=this.getServletContext().getResourceAsStream("/WEB-INF/classes/gacl/servlet/study/db4.properties");????Propertiesprop=newProperties();????prop.load(in);????Stringdriver=prop.getProperty("driver");????Stringurl=prop.getProperty("url");????Stringusername=prop.getProperty("username");????Stringpassword=prop.getProperty("password");????response.getWriter().println("ȡsrcĿ¼µgacl.servlet.studyеdb4.propertiesļ");????response.getWriter().println(????????MessageFormat.format(????????????"driver={0},url={1},username={2},password={3}",?????????????driver,url,username,password));??}???/**???*ȡsrcĿ¼µdb.configеdb3.propertiesļ???*@paramresponse???*@throwsFileNotFoundException???*@throwsIOException???*/??privatevoidreadPropCfgFile(HttpServletResponseresponse)??????throwsFileNotFoundException,IOException{????//ͨServletContextȡwebԴľ·????Stringpath=this.getServletContext().getRealPath("/WEB-INF/classes/db/config/db3.properties");????InputStreamin=newFileInputStream(path);????Propertiesprop=newProperties();????prop.load(in);????Stringdriver=prop.getProperty("driver");????Stringurl=prop.getProperty("url");????Stringusername=prop.getProperty("username");????Stringpassword=prop.getProperty("password");????response.getWriter().println("ȡsrcĿ¼µdb.configеdb3.propertiesļ");????response.getWriter().println(????????MessageFormat.format(????????????"driver={0},url={1},username={2},password={3}",?????????????driver,url,username,password));??}???/**???*ͨServletContextȡWebRootĿ¼µpropertiesļ???*@paramresponse???*@throwsIOException???*/??privatevoidreadWebRootDirPropCfgFile(HttpServletResponseresponse)??????throwsIOException{????/**?????*ͨServletContextȡWebRootĿ¼µpropertiesļ?????*/ĿĿ¼?????*/????InputStreamin=this.getServletContext().getResourceAsStream("/db2.properties");????Propertiesprop=newProperties();????prop.load(in);????Stringdriver=prop.getProperty("driver");????Stringurl=prop.getProperty("url");????Stringusername=prop.getProperty("username");????Stringpassword=prop.getProperty("password");????response.getWriter().println("ȡWebRootĿ¼µdb2.propertiesļ");????response.getWriter().print(????????MessageFormat.format(????????????"driver={0},url={1},username={2},password={3}",?????????????driver,url,username,password));??}???/**???*ͨServletContextȡsrcĿ¼µpropertiesļ???*@paramresponse???*@throwsIOException???*/??privatevoidreadSrcDirPropCfgFile(HttpServletResponseresponse)throwsIOException{????/**?????*ͨServletContextȡsrcĿ¼µdb1.propertiesļ?????*/????InputStreamin=this.getServletContext().getResourceAsStream("/WEB-INF/classes/db1.properties");????Propertiesprop=newProperties();????prop.load(in);????Stringdriver=prop.getProperty("driver");????Stringurl=prop.getProperty("url");????Stringusername=prop.getProperty("username");????Stringpassword=prop.getProperty("password");????response.getWriter().println("ȡsrcĿ¼µdb1.propertiesļ");????response.getWriter().println(????????MessageFormat.format(????????????"driver={0},url={1},username={2},password={3}",?????????????driver,url,username,password));??}???publicvoiddoPost(HttpServletRequestrequest,HttpServletResponseresponse)??????throwsServletException,IOException{????this.doGet(request,response);??}?}н£ʹװȡԴļڷservletжȡԴļʱݿdaoȡļװclassLoader,ȲservletȶȡȻڰservletݸdaoȻʵ֣ǣDZԭ򣬾Dz֮䲻н֯һĶ

中国教育在线

备案专业
|
审批专业
|
调整专业
|
撤销专业
3月21日,教育部发布《2017年度普通高等学校本科专业备案和审批结果的通知》,确定了审批同意设置的国家控制布点专业和尚未列入目录的新专业名单。以下是本科新增备案专业名单:

部属高校

SUBORDINATE COLLEGES

交通运输部

国家体育总局

国家安全生产监督管理总局

国务院侨务办公室

中国科学院

中国社会科学院

中国地震局

中华全国妇女联合会

3月21日,教育部发布《2017年度普通高等学校本科专业备案和审批结果的通知》,确定了审批同意设置的国家控制布点专业和尚未列入目录的新专业名单。以下是新增审批本科专业名单:

部属高校

SUBORDINATE COLLEGES

国家体育总局

国务院侨务办公室

中国科学院

中国社会科学院

3月21日,教育部发布《2017年度普通高等学校本科专业备案和审批结果的通知》,确定了审批同意设置的国家控制布点专业和尚未列入目录的新专业名单。以下是调整学位授予门类或修业年限专业名单:

部属高校

SUBORDINATE COLLEGES

3月21日,教育部发布《2017年度普通高等学校本科专业备案和审批结果的通知》,确定了审批同意设置的国家控制布点专业和尚未列入目录的新专业名单。以下是撤销本科专业名单:

部属高校

SUBORDINATE COLLEGES

工业和信息化部

国家民族事务委员会

交通运输部

高考工具箱

/MINISTRY OF EDUCATION

高考工具箱

/MINISTRY OF EDUCATION

选大学

查专业

填志愿

掌上高考