摘要: 请检查你在web.xml中加载spring.xml文件的时候没有加载成功,看你的路径是否正确 contextConfigLocation /WEB-INF/spring.xml 阅读全文
posted @ 2014-01-12 21:40 努力挣扎的小兵 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 今天使用eclipse开发ssh,出现Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"。jar包都加进来了啊,以前使用myeclipse也没有出现过这种问题,后来上网查询了一下,说是少了jstl.jar和standard.jar,导入了这两个jar包后果然好了。myeclipse会自动引入,不需要手动导入. 阅读全文
posted @ 2014-01-12 21:24 努力挣扎的小兵 阅读(2361) 评论(0) 推荐(0) 编辑
摘要: java中16进制转换10进制public static void main(String[] args) { String str = "04e1"; String myStr[] = { "a", "b", "c", "d", "e", "f" }; int result = 0; int n = 1; for (int i = str.length() - 1; i >= 0; i--) { String param = str.substri 阅读全文
posted @ 2014-01-12 14:10 努力挣扎的小兵 阅读(2656) 评论(1) 推荐(0) 编辑
摘要: 首先,你的eclipse必须得装有web插件1、找到项目工作空间目录,打开.project文件,并修改文件, 修改如下: 找到: 代码段,在代码段中加入如下内容并保存: org.eclipse.wst.common.project.facet.core.nature org.eclipse.wst.common.modulecore.ModuleCoreNature org.eclipse.jem.workbench.JavaEMFNature 2、在eclipse的项目上,刷新项目。 3、在项目上,进入属性(properties) 4、左侧列表项目中选择“Project Facets... 阅读全文
posted @ 2014-01-12 14:03 努力挣扎的小兵 阅读(736) 评论(0) 推荐(0) 编辑
摘要: 发现JDBC连接字符串总是容易忘记,特此整理一下常用的几种数据的连接ORACLE: /** * ORACLE * */ public static Connection getOracleConnection(){ Connection connection = null; try { Class.forName("oracle.jdbc.OracleDriver"); connection = DriverManager.getConnection("jdbc:oracle:thin:@127.0... 阅读全文
posted @ 2014-01-12 13:44 努力挣扎的小兵 阅读(369) 评论(0) 推荐(0) 编辑