`
bjmike
  • 浏览: 277712 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
##关于实体层编写及配置 ###概述 项目所有实体层位于 `${package}.entity`目录下,实体对象编写需要遵从JPA规范进行标注。 ###命名规范 对于实体名及包名的编写规范,建议遵循以下方式: * 子包名应短小并且包含实际业务划分的含 ...
项目需要把微博搜索的东西发送到指定服务器上,我想到了油猴子,现学之, // ==UserScript== // @name weibo_test2 // @namespace http://www.oreilly.com/catalog/greasemonkeyhacks/ // @description 抓取微博搜素结果的uid // @include http://s.weibo.com/* // @exclude %exclude% // @version 1 // ==/UserScript== alert('He ...
Git 全局设置: git config --global user.name "aming" git config --global user.email "lixiaoming0502@126.com" 创建 git 仓库 mkdir crawler-framework cd crawler-framework git init touch README git add README git commit -m "first commit" git remote add origi ...
htmlparser简小精悍,对于抓取普通的html页面,具有按照css查找节点的功能,如: public static void main(String[] args) throws IOException, ParserException { String site = "http://tech.qq.com/a/20131112/011680.htm"; String site2="http://www.chinanews.com/gn/2013/11-12/5492942.shtml"; ...
Package javax.enterprise.context Description : Annotations and interfaces relating to scopes and contexts. 涉及到范围和上下文的注解和接口。 A scope type is a Java annotation annotated @Scope or @NormalScope. The scope of a bean determines the lifecycle and visibility of its instances. In particular, the scope dete ...
问题原因: 默认Eclipse的编译环境是JRE,而JRE是不带编译器的,只有JDK才带编译器。所以必须把JDK作为你项目的Installed JRE。 详见http://blog.csdn.net/lament_gates/article/details/4402313
执行yum install php53*
1.编写位置.htaccess,设置文件属性为777 <IFMODULE mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule category/(.*)/(.*).html$ category.php?id=$1&page=$2 RewriteRule chapter/ctx_(.*).html$ chapter_ctx.php?id=$1 RewriteRule ^t_(.*).html$ test.php?id=$1 [L] </IFMODULE> 2.修改httpd.conf, v ...

mybatis学习资源

项目地址: http://code.google.com/p/mybatis/ 英文: http://mybatis.github.io/mybatis-3/getting-started.html 中文: http://mybatis.github.io/mybatis-3/zh/index.html 建议先看英文,看不懂的时候再看中文,因为中文翻译难免有译者的一家之言。
废话不说,直接贴代码 /** 执行转发开始clearInterval(myInterval); 地址:http://tuitu.sinaapp.com/weibo/task http://qqtuitu.sinaapp.com/weibo/task **/ (function(){ var doc = document, script = doc.createElement("script"), _s = doc.getElementsByTagName("script")[0]; //script.src ...
3. :%s/vivian/sky/(等同于 :g/vivian/s//sky/) 替换每一行的第一个 vivian 为 sky     :%s/vivian/sky/g(等同于 :g/vivian/s//sky/g) 替换每一行中所有 vivian 为 sky 举一个复杂的例子,把文中的所有字符串“abc……xyz”替换为“xyz……abc”可以有下列写法: :%s/abc\(.*\)xyz/xyz\1abc/g :%s/\(abc\)\(.*\)\(xyz\)/\3\2\1/g Vim删除重复行 The following command will sort all l ...
很不幸,本人小站被攻击了,很郁闷,查看服务器日志,发现很多是sql注入,或者是php注入,由于本人是java开发者,业务爱好开发点php,只是开发者玩,没想到也被黑客顶上了,很郁闷。也不知道黑客怎么破解了,上我网站发现一个数据表被清空了,很郁闷。附带日志。以供以后参考。 分析日志发现,一个IP为66.249.77.115 的地址总是尝试着去以猜测的方式获取我网站的一些文件,如: 123.151.39.47 - - [30/Sep/2013:13:26:29 +0800] "GET /wwwroot.rar HTTP/1.1" 404 225 "http://kaix ...
function dhtmlspecialchars($string, $flags = null) { if(is_array($string)) { foreach($string as $key => $val) { $string[$key] = dhtmlspecialchars($val, $flags); } } else { if($flags === null) { $string = str_replace(array('&', '"', '<', '>'), array('&amp;' ...
今天看 spring api , spring 建议采用SLF4J而不是Commons Logging,原因如下: SLF4J is a cleaner dependency and more efficient at runtime than commons-logging because it uses compile-time bindings instead of runtime discovery of the other logging frameworks it integrates 我理解为:SLF4J采用的策率是编译时绑定,而commons-logging 采用的是运行时查找的 ...
学习的资源那么多,可以说是浩如烟海,所以需要知道, 哪些需要精读,哪些需要略读,重要的是思想。 具体来说,经典的,理论性的,基础性的需要精读,工具性的需要略读
Global site tag (gtag.js) - Google Analytics