摘要: 比如你的工作空间为 E:\workspace-project 找到以下路径: E:\workspace-project\.metadata\.plugins\org.eclipse.core.runtime\.settings 找个此文件:com.genuitec.eclipse.ast.deplo 阅读全文
posted @ 2017-06-21 17:16 ginkgolu 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 需要jre/lib下的tools.jar包 public class Test { public static void main(String[] args) throws Exception { // System.out.println(getPidFromWindows("javaw")); 阅读全文
posted @ 2017-06-20 17:42 ginkgolu 阅读(7179) 评论(0) 推荐(0) 编辑
摘要: 来源:脚本之家 http://www.jb51.net/yunying/28470.html 下面的这些方法是可以标本兼治的:1、限制IP地址单位时间的访问次数 分析:没有哪个常人一秒钟内能访问相同网站5次,除非是程序访问,而有这种喜好的,就剩下搜索引擎爬虫和讨厌的采集器了。 弊端:一刀切,这同样会 阅读全文
posted @ 2017-06-16 18:21 ginkgolu 阅读(924) 评论(0) 推荐(0) 编辑
摘要: Redhat系列(Cnetos)打配置文件在/etc/sysconfig/network-scripsts/ifcfg-eth0(在Centos6.5开始就有这种情况了) 打开配置文件找到ONBOOT=no 要改为ONBOOT=yes 默认是ONBOOT=no,它打意思是:是否随网络服务启动,eth 阅读全文
posted @ 2017-03-26 22:13 ginkgolu 阅读(6749) 评论(0) 推荐(0) 编辑
摘要: dubbo中间件中有一个import com.alibaba.dubbo.config.annotation.Service类,在service层添加注解时要注意,我们添加的是import org.springframework.stereotype.Service 阅读全文
posted @ 2017-03-23 11:03 ginkgolu 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: 1、拦截"/",可以实现现在很流行的REST风格。很多互联网类型的应用很喜欢这种风格的URL。为了实现REST风格,拦截除了jsp的所有。 2、拦截/*,拦截所有访问,会导致404错误,即访问不到jsp。 阅读全文
posted @ 2017-03-10 21:16 ginkgolu 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 1、注解(字段上添加) @JSONField(serialize=false) 2、过滤器 PropertyFilter propertyFilter = new PropertyFilter() { public boolean apply(Object object, String name, 阅读全文
posted @ 2017-03-09 15:36 ginkgolu 阅读(1216) 评论(0) 推荐(0) 编辑
摘要: 解决方案;在web.xml <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</ 阅读全文
posted @ 2017-03-03 17:10 ginkgolu 阅读(2952) 评论(0) 推荐(0) 编辑
摘要: detachedCriteria.add(Restrictions.or(Restrictions.isNull(""), Restrictions.isNull(""))); 阅读全文
posted @ 2017-02-24 21:18 ginkgolu 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 1、添加lazy=“false”(两个xml文件中都要添加) 2、设置过滤器 阅读全文
posted @ 2017-02-24 14:32 ginkgolu 阅读(199) 评论(0) 推荐(0) 编辑