摘要:
一种解决办法是使用 window.location.reload(),缺点是: 如果网页是POST请求,那么刷新后会再次提交。 还有另一种,造成无法刷新的原因是:链接里有 # 号。所以把它转义一下就能解决问题 var tmpUrl = window.location.href; tmpUrl = t 阅读全文
摘要:
场景:sdk 里获取spring 的bean 1、先新建一个类 1 package com.yonyou.yht.bean; 2 3 import com.yonyou.iuap.yms.session.YmsSessionMangager; 4 import org.springframework 阅读全文
摘要:
正常情况下,mysql 的 replace into 功能,也可以通过insert ignore 或者 if not exists 等关键词替代实现 然而,在oscar 数据库里,replace 不能使用,而且 ignore 或 if 等关键词 它也不认 最终研究发现,得用 MERGE INTO 比 阅读全文
摘要:
问题 IDEA 打印太多的DEBUG日志,看起来很烦,有没有办法隐藏日志? 网上找了一圈,没有谁写的靠谱的,也是无语了。 网上的方案基本上只有两种: 1、添加log4j.properties 2、spring-boot 项目 使用【Edit Configuration】来修改配置 这两种都有很大的局 阅读全文
摘要:
public static boolean isEmptyForOne(String...strings){ if(strings==null||strings.length==0) { return true; } for(String s : strings){ if(isEmpty(s)) { 阅读全文
摘要:
pom.xml <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId> <version>1.5.6</version> </dependency> MailSenderInfo.java im 阅读全文
摘要:
1 import com.yonyou.iuap.context.ContextHolder; 2 import com.yonyou.yht.cache.CacheManager; 3 import com.yonyou.yht.cache.redis.RedisPoolFactory; 4 im 阅读全文
摘要:
日志文件,查看sortType的参数 先替换前边的字符 sed 's/.*sortType/sortType/g' ttt.txt 再替换后边的字符sed 's/,user.*//g' a.txt 然后就可以使用awk来统计了 阅读全文
摘要:
IDEA 的右上角有一个图钉按钮,选中了以后,它就不会自动关 之前不小心点到了,还以为是我的idea版本问题 阅读全文
摘要:
<style type="text/css"> .dream_area { background: rgba(0,0,0,.7); text-align: center; line-height: 2rem; color: #fff; position: fixed; left: 50%; top: 阅读全文
摘要:
先在 web.xml 中 添加Servlet <servlet> <servlet-name>bingTestServlet</servlet-name> <servlet-class>com.bing.servlet.BingTestServlet</servlet-class> <load-on 阅读全文
摘要:
httpcore 包 <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> <version>${httpcore.version}</version> </depend 阅读全文
摘要:
@Override public final int hashCode() { return new HashCodeBuilder().append(this.getId()).toHashCode(); } @Override public boolean equals(final Object 阅读全文
摘要:
现在同一个工程里有两个module,cas-server-webapp 中依赖了cas-server-webapp-support。 如果写成如下的顺序,那就是从仓库里加载 jar包: <modules> <module>cas-server-webapp</module> <module>cas- 阅读全文
摘要:
private static final char[] LDAP_FILTER_ESCAPE_SEQUENCE = new char[]{'\\', '*', '(', ')', '\0', '/'}; private static final String[] LDAP_FILTER_ESCAPE 阅读全文