javaweb
文章平均质量分 58
yjptu
这个作者很懒,什么都没留下…
展开
-
AS3中使用URLRequest发送POST请求
AS3中使用URLRequest发送POST请求使用AS3中的URLRequest发送POST请求时,就算接口中不要求传递参数,至少也要写一个参数,这样请求才是POST发送,否则还是GET原创 2013-12-06 16:33:54 · 2818 阅读 · 0 评论 -
SpringMVC+Hibernate配置
Spring MVC配置:web.xml文件: contextConfigLocation classpath*:config/spring-*.xml org.springframework.web.context.ContextLoaderListener spri原创 2013-11-30 17:05:40 · 624 阅读 · 0 评论 -
Redis的安装部署
Redis的安装部署1.下载相应的安装包redis-2.8.3.tar.gz(http://redis.io/download)2.编译源程序: tar zxvf redis-2.8.3.tar.gz cd redis-2.8.3 make cd src && make install3.建立Redis文件目录: mkdir -p /usr/local/r原创 2013-12-17 21:34:19 · 630 阅读 · 0 评论 -
获取客户端ip地址方法和通过curl在命令行提交post数据到服务器
获取客户端ip地址方法 public String getIpAddress(HttpServletRequest request) { String ip = request.getHeader("x-forwarded-for"); if(ip == null || ip.length() == 0 || "unknown".equalsIgnor原创 2014-01-29 17:47:13 · 3173 阅读 · 0 评论 -
Spring MVC获取客户端传给的json数据
Spring MVC获取客户端传给的json数据@RequestMapping(value = "/postRequest", method = RequestMethod.POST, headers = "Content-Type=application/json")@ResponseBody public Object postRequest(HttpServletReque原创 2014-01-27 18:03:49 · 2185 阅读 · 0 评论 -
客户端POST发送json数据给服务端,客户端端接收服务器端json数据响应
客户端POST发送json数据给服务端//请求的地址 String url = "http://localhost:8080/springmvc/request/postRequest"; //创建Http Request(内部使用HttpURLConnection) ClientHttpRequest request =原创 2014-01-27 18:18:13 · 7635 阅读 · 0 评论 -
Hibernate事务隔离级别和事务传播特性
Hibernate事务隔离级别和事务传播特性事务隔离级别:1:读操作未提交(Read Uncommitted)2:读操作已提交(Read Committed)4:可重读(Repeatable Read)8:可串行化(Serializable)事务传播特性:1.PROPAGATION_REQUIRED: 如果当前没有事务,就新建一个事务,如果已经存在一个事务中,加入到原创 2014-02-21 10:57:21 · 839 阅读 · 0 评论