上一页 1 ··· 5 6 7 8 9
摘要: web.xml配置文件代码: <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:applicationContext*.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-c 阅读全文
posted @ 2011-11-26 22:39 周雷 阅读(28194) 评论(1) 推荐(0) 编辑
摘要: 1.mysqldialect:org.hibernate.dialect.MySQLDialect驱动名称:com.mysql.jdbc.Driver连接字符串jdbc:mysql://localhost/dbName2.postgresdialect:org.hibernate.dialect.PostgreSQLDialect驱动名称:org.postgresql.Driver连接字符串:jdbc:postgresql://127.0.0.1:5432/dbName3.sqlserverdialect:org.hibernate.dialect.SQLServerDialect驱动名称:c 阅读全文
posted @ 2011-11-26 16:56 周雷 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 1.页面自动跳转:<meta http-equiv="refresh" content="0.1;url=login/login_toLogin.action">2.jsp中获取项目名(得到"/myProjectName"):<%=request.getContextPath()%> 阅读全文
posted @ 2011-11-26 12:56 周雷 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1.maven: http://m2eclipse.sonatype.org/sites/m2e http://download.eclipse.org/technology/m2e/releases/2.freemarker(可以直接在eclipse中进行更新): http://download.jboss.org/jbosstools/updates/stable/helios/ http://www.freemarker.org/eclipse/update http://download.jboss.org/jbosstools/updates/devel... 阅读全文
posted @ 2011-11-20 15:03 周雷 阅读(466) 评论(2) 推荐(0) 编辑
摘要: 1.首先当然是jar包了,下载地址:http://www.jdom.org/dist/binary/下面的jdom-1.1.1.zip下载下来,解压开找到build目录下的jdom.jar2.添加jdom.jar到项目中,别忘了buildpath3.生成xml文件方法:public static void createXMLFile() throws FileNotFoundException, IOException, SQLException{ RegionDao regionDao = new RegionDao(); String createXmlPath... 阅读全文
posted @ 2011-10-19 18:07 周雷 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 第一次发表随笔,哈哈哈挺不错,编辑器功能很强大!! 阅读全文
posted @ 2011-10-14 18:41 周雷 阅读(94) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9
友情链接