上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 之前一直都是使用hibernate4.2.21的我,有一天突然没有使用本地的jar包而是让IDEA自动下载最新版本的hibernate5.2.2之后,发现有几个经常使用的方法报错了. //创建配置对象 Configuration config=new Configuration().configur 阅读全文
posted @ 2018-06-23 20:08 小屈工作室 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: RDBMS方言 DB2 org.hibernate.dialect.DB2Dialect DB2 AS/400 org.hibernate.dialect.DB2400Dialect DB2 OS390 org.hibernate.dialect.DB2390Dialect PostgreSQL o 阅读全文
posted @ 2018-06-23 19:31 小屈工作室 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1、上传对表单限制 *method=post *Enctype=multipart/form-data,它的默认值是:application/x-www-form-urlencoded 表单中需要添加文件表单项;<input type=”file” name=”必须给”/> 1、上传三步 相关类: 阅读全文
posted @ 2018-06-23 12:22 小屈工作室 阅读(86) 评论(0) 推荐(0) 编辑
摘要: https://www.aliyun.com/jiaocheng/778495.html 今天写filter(过滤器)的时候,碰到一个奇怪的问题,发现filter可以过滤urlPatterns,但是无法过滤servlet。 测试结果: 1.LoginFilter 可以过滤 urlPatterns 的 阅读全文
posted @ 2018-06-22 14:57 小屈工作室 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 1.右键项目-》属性-》java bulid path-》jre System Library-》access rules-》resolution选择accessible,下面填上** 点击确定即可!!! 2. 在MyEclipse中编写Java代码时,用到了BASE64Decoder,import 阅读全文
posted @ 2018-06-18 11:04 小屈工作室 阅读(203) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.down.utils; import java.io.IOException;import java.net.URLEncoder; import javax.servlet.http.HttpServletRequest; import sun.misc.BAS 阅读全文
posted @ 2018-06-18 11:03 小屈工作室 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 分析: 统计工作需要在所有资源之前都执行,那么就可以放到Filter中。 我们这个过滤器不打算做拦截操作!因为我们只是用来做统计 用什么东西来装载统计的数据。Map<String,Integer> 整个网站只需要一个Map即可! Map什么时候创建(使用ServletContextListener, 阅读全文
posted @ 2018-06-15 14:47 小屈工作室 阅读(279) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><c3p0-config> <default-config> <property name="jdbcUrl">jdbc:mysql://localhost:3306/day15</property> <property n 阅读全文
posted @ 2018-06-12 16:49 小屈工作室 阅读(18713) 评论(0) 推荐(0) 编辑
摘要: Junit报的错误, 在测试方法前面没有添加注解@Test 阅读全文
posted @ 2018-06-11 11:33 小屈工作室 阅读(300) 评论(0) 推荐(0) 编辑
摘要: mysql 1064 错误: SQL语法错误,check the manual that corresponds to your MySQL server version for the right syntax to use near 'intsert into students values(1 阅读全文
posted @ 2018-06-11 11:21 小屈工作室 阅读(15952) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页