摘要: 原因: The posted stack trace indicates that a RuntimeException was encountered in a Daemon thread. This is typically uncaught at runtime, unless the ori 阅读全文
posted @ 2016-08-27 22:20 仁波切 阅读(722) 评论(0) 推荐(0) 编辑
摘要: 留着以后备用 阅读全文
posted @ 2016-08-15 21:13 仁波切 阅读(1020) 评论(0) 推荐(0) 编辑
摘要: 首先,纯jdbc获取是不可能了,但是也需要知道和数据库交互的步骤, 1,创建驱动类的程序对象 2,,设置用户名和密码并连接数据库得到connection 3,准备sql,创建查询 4,执行sql,得到返回结果 在有数据库连接池的封装里,1,2点不用做了,只做三四点,下面就重点讨论3,4点 对于纯jd 阅读全文
posted @ 2016-07-27 23:32 仁波切 阅读(254) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/skywang12345/p/3323085.html 阅读全文
posted @ 2016-07-19 00:39 仁波切 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 首先,struts2的上传下载的配置 因为struts2是配置的上传的拦截器,很简单的步揍就可以上传, 首先是配置struts的action映射 配置好了之后,在所配置的类里写代码, 在这里,需要根据表单上传文件jsp中的 文件:<input type="file" name="file1"><br 阅读全文
posted @ 2016-07-18 00:15 仁波切 阅读(995) 评论(0) 推荐(0) 编辑
摘要: 导入两个jarcommons-fileupload.jar,和commons-io.jar 在请求中创建核心类 对上传文件进行设置 判断是否是上传文件 upload.isMultipartContent(request);//就是判断enctype="multipart/form-data",如果e 阅读全文
posted @ 2016-07-17 11:36 仁波切 阅读(3359) 评论(0) 推荐(0) 编辑
摘要: log4j 的配置 使用得代码 以上就是日志类的使用 更加详细的介绍可以参见一边博文,写的不错,很全 http://www.cnblogs.com/ITtangtang/p/3926665.html 阅读全文
posted @ 2016-07-17 00:48 仁波切 阅读(2941) 评论(0) 推荐(0) 编辑
摘要: 数据库得加密 先来一个网上大多数的教程吧,一个比较好的教程,如下、 jar包版本:druid-1.0.13.jar 1. 加密,用以下命令将用户名和密码加密 cmd命令行执行 java -cp D:/druid-1.0.13.jar com.alibaba.druid.filter.config.C 阅读全文
posted @ 2016-07-13 02:14 仁波切 阅读(16331) 评论(0) 推荐(0) 编辑
摘要: 由于那天Oracle的数据连接是只能使用dbcp的数据库连接池才连接上了,所以决定试一下当下所有得数据库连接池连接orcale和mysql,先上代码 配置文件的代码 下面是spring-mybatis.xml的配置,即spring文件中的配置 下面来说jar,有很多次测试不通过, druid,是因为 阅读全文
posted @ 2016-07-13 00:34 仁波切 阅读(3933) 评论(0) 推荐(1) 编辑
摘要: orcal数据库得连接必须用localhost,url中不要用127.0.0.1,不然无法连接, 阅读全文
posted @ 2016-07-11 23:53 仁波切 阅读(295) 评论(0) 推荐(0) 编辑