上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 77 下一页
摘要: 若要使用org.restlet包,则需在maven 的配置文件pom.xml中,单独配置获取仓库: <repositories> <repository> <id>maven-restlet</id> <name>Public online Restlet repository</name> <ur 阅读全文
posted @ 2016-08-31 15:39 hongweigg 阅读(35) 评论(0) 推荐(0)
摘要: 问题 在使用maven进行一个工程的编译,已加入junit包的依赖,编译的时候却总是报“junit.framework不存在”错误。 pom.xml中junit包加入如下: <dependency> <groupId>junit</groupId> <artifactId>junit</artifa 阅读全文
posted @ 2016-08-31 14:27 hongweigg 阅读(47) 评论(0) 推荐(0)
摘要: 问题 maven在处理带BOM文件头(UTF-8格式标记)时会报错,错误消息为:非法字符: \65279。 解决 使用UltraEdit等工具另存为“不带BOM”的UTF-8格式。 参考 关于javac编译时出现“非法字符:\65279”的解决方法 在Eclipse里 点击工程右键 Export - 阅读全文
posted @ 2016-08-31 12:00 hongweigg 阅读(22) 评论(0) 推荐(0)
摘要: maven 创建新项目出现问题,使用脚本: mvn archetype:create -DgroupId=com.maven.test -Dartifact Id=HelloMaven -DpackageName=com.maven.test 经查,原来是不支持archetype:create,正确 阅读全文
posted @ 2016-08-30 15:30 hongweigg 阅读(23) 评论(0) 推荐(0)
摘要: 1、查看linux内核,GCC版本 使用命令:cat /proc/version 2、查看Linux内核 使用命令:uname -a 3、查看产品版本 使用命令:lsb_release -a 阅读全文
posted @ 2016-08-30 09:47 hongweigg 阅读(12) 评论(0) 推荐(0)
摘要: Spring Bean 的scope参数共5中,分别是:singleton(单例)、non-singleton(也称 prototype), Spring2.0以后,增加了session、request、global session。 在Servlet或Spring Controller中使用自动织 阅读全文
posted @ 2016-08-24 15:09 hongweigg 阅读(38) 评论(0) 推荐(0)
摘要: 问题 在使用Spring MVC Controller的过程中,发现返回到客户端的的中文出现乱码。后台JAVA代码: @RequestMapping(value = "/upload", method = RequestMethod.POST, produces = "text/json") pub 阅读全文
posted @ 2016-08-24 15:04 hongweigg 阅读(32) 评论(0) 推荐(0)
摘要: 问题 在MySQL中将字符串转换为日期时,发现一日期转换代码无论怎样修改转换格式,输出总是为空,但另一同样格式的写法,却能正常转换,见下面的语句: select str_to_date('2016.08.22 13:46:12', '%Y.%m.%d %h:%i:%s'); --输出空 select 阅读全文
posted @ 2016-08-22 14:11 hongweigg 阅读(99) 评论(0) 推荐(0)
摘要: 背景 使用swfupload 上传文件,后台用spring controller进行处理,报not acceptable according to the request "accept" headers错误。 原因 swfupload上传的HTTP头中,发送的指令Accept:text/*,而Sp 阅读全文
posted @ 2016-08-18 20:14 hongweigg 阅读(18) 评论(0) 推荐(0)
摘要: 前言 在进行浏览器客户端测试时,为避免缓存对调试的影响,需要经常的清除浏览器缓存。但每次清缓存都要打开浏览器的设置窗口进行,费事费力。这儿有一个简单的方法,每次点一下按钮即可清除缓存,可谓“一键式”操作。 实现步骤 1、创建clearIECache.bat文件; 2、输入: RunDll32.exe 阅读全文
posted @ 2016-08-18 10:34 hongweigg 阅读(43) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 77 下一页