码迷,mamicode.com
首页 >  
搜索关键字:jsonformat 400 bad request    ( 21916个结果
ASP.NETMVCView页面内判断是否登录
ASP.NETMVCView页面内判断是否登录直接写这个判断即可@if (Request.IsAuthenticated) { 你好,@Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: n...
分类:Web程序   时间:2014-06-18 22:30:21    阅读次数:393
git笔记:通过给grunt-inline打tag看tag操作
晚上review了下grunt-inline的issues,看到有个兄弟pull request,修正了0.3.0版本的一个bug。于是就merge了下,然后发布了0.3.1版本(这里)。npm publish后,突然想到一个问题,发布了这么多个版本了,但好像都没有打过tag,这个不利于版本回溯以及...
分类:其他好文   时间:2014-06-18 21:33:43    阅读次数:252
Spring Bean的作用域 实例
Spring 默认创建的对象是单例模式的对象 设置Bean的作用域,通过Bean元的Scope属性 Scope取值范围: Singleton:单例 proptotype:非单例        Request:创建该Bean,并调用request.setAttribute(“beanId”,beanObj);        Session:创建该Bean,并调用request.get...
分类:编程语言   时间:2014-06-17 22:11:13    阅读次数:313
springmvc No mapping found for HTTP request with URI in Dispatc
项目是使用spring MVC(1)在浏览器中访问,后台总报错:Java代码NomappingfoundforHTTPrequestwithURI[/exam3/welcome]inDispatcherServletwithname'spring2'查了好半天,才发现是controller没有扫描到...
分类:移动开发   时间:2014-06-17 20:04:22    阅读次数:494
第一个Nodejs程序
我的第一个Nodejs程序:Hello World var http = require("http");http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/.....
分类:Web程序   时间:2014-06-17 19:59:52    阅读次数:241
纸质笔记整理(一)
使用File类的listFiles()来遍历指定路径下的所有文件信息。在tomcat的conf/web.xml中通过可查看支持的MIME类型,也可修改。可在dos中调用netstat -ab来查看对应的端口应用程序。filter:在web.xml中配置,将请求的request、返回的response提前过滤掉一些信息或者设置一些参数,如设置字符编码,权限过滤器等等;而interceptor是在st...
分类:其他好文   时间:2014-06-16 20:18:04    阅读次数:250
jsp页面保存到数据库有乱码解决方法
第一种: 在页面前加上 errorPage=""%> 第一行说明你的页面用的是中文编码 第二行声明你的页面传值也用中文编码 第二种 tomcat4.x支持中文传码,但5.x不支持,如果用5.0以上的版本就得转码了, 就是这种格式 String strKeyWords=new String(request.getParameter("key_words").get...
分类:数据库   时间:2014-06-15 14:17:32    阅读次数:216
文件下载的多种方法
if (Request["name"] != null) { try { string FileName = MyCrypt.Decrypt(Request["name"]); //string FilePath = Server.MapPath(string.Format("UploadFile....
分类:其他好文   时间:2014-06-14 23:47:24    阅读次数:352
struts2 访问Web元素的4种方法
完整代码 :Struts12AccessWebElement.rar第一种也是最常用的一种方法实现这几个接口RequestAware,SessionAware,ApplicationAwarestruts以依赖注入方式把request,session和application赋上值,看一下完整的代码p...
分类:Web程序   时间:2014-06-14 19:36:02    阅读次数:277
RTP 记录 log 的机制
EBS 里面的 concurrent request: RTP log 记录的机制...
分类:其他好文   时间:2014-06-14 11:02:39    阅读次数:218
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!