欢迎访问我的个人网站==》 jiashubing.cn
上一页 1 2 3 4 5 6 7 8 ··· 39 下一页
摘要: 一种解决办法是使用 window.location.reload(),缺点是: 如果网页是POST请求,那么刷新后会再次提交。 还有另一种,造成无法刷新的原因是:链接里有 # 号。所以把它转义一下就能解决问题 var tmpUrl = window.location.href; tmpUrl = t 阅读全文
posted @ 2022-07-01 10:22 贾树丙 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: 场景:sdk 里获取spring 的bean 1、先新建一个类 1 package com.yonyou.yht.bean; 2 3 import com.yonyou.iuap.yms.session.YmsSessionMangager; 4 import org.springframework 阅读全文
posted @ 2022-06-30 14:18 贾树丙 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 正常情况下,mysql 的 replace into 功能,也可以通过insert ignore 或者 if not exists 等关键词替代实现 然而,在oscar 数据库里,replace 不能使用,而且 ignore 或 if 等关键词 它也不认 最终研究发现,得用 MERGE INTO 比 阅读全文
posted @ 2022-06-24 15:54 贾树丙 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 问题 IDEA 打印太多的DEBUG日志,看起来很烦,有没有办法隐藏日志? 网上找了一圈,没有谁写的靠谱的,也是无语了。 网上的方案基本上只有两种: 1、添加log4j.properties 2、spring-boot 项目 使用【Edit Configuration】来修改配置 这两种都有很大的局 阅读全文
posted @ 2021-12-28 14:49 贾树丙 阅读(4562) 评论(3) 推荐(1) 编辑
摘要: public static boolean isEmptyForOne(String...strings){ if(strings==null||strings.length==0) { return true; } for(String s : strings){ if(isEmpty(s)) { 阅读全文
posted @ 2021-10-19 16:31 贾树丙 阅读(247) 评论(0) 推荐(0) 编辑
摘要: pom.xml <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId> <version>1.5.6</version> </dependency> MailSenderInfo.java im 阅读全文
posted @ 2021-10-08 14:25 贾树丙 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1 import com.yonyou.iuap.context.ContextHolder; 2 import com.yonyou.yht.cache.CacheManager; 3 import com.yonyou.yht.cache.redis.RedisPoolFactory; 4 im 阅读全文
posted @ 2021-07-30 21:05 贾树丙 阅读(1562) 评论(0) 推荐(0) 编辑
摘要: 日志文件,查看sortType的参数 先替换前边的字符 sed 's/.*sortType/sortType/g' ttt.txt 再替换后边的字符sed 's/,user.*//g' a.txt 然后就可以使用awk来统计了 阅读全文
posted @ 2021-07-30 20:57 贾树丙 阅读(542) 评论(0) 推荐(0) 编辑
摘要: IDEA 的右上角有一个图钉按钮,选中了以后,它就不会自动关 之前不小心点到了,还以为是我的idea版本问题 阅读全文
posted @ 2021-05-27 19:49 贾树丙 阅读(972) 评论(2) 推荐(1) 编辑
摘要: <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: 阅读全文
posted @ 2021-05-12 17:12 贾树丙 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 先在 web.xml 中 添加Servlet <servlet> <servlet-name>bingTestServlet</servlet-name> <servlet-class>com.bing.servlet.BingTestServlet</servlet-class> <load-on 阅读全文
posted @ 2021-04-30 16:42 贾树丙 阅读(618) 评论(0) 推荐(0) 编辑
摘要: httpcore 包 <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> <version>${httpcore.version}</version> </depend 阅读全文
posted @ 2021-04-30 14:25 贾树丙 阅读(388) 评论(0) 推荐(0) 编辑
摘要: @Override public final int hashCode() { return new HashCodeBuilder().append(this.getId()).toHashCode(); } @Override public boolean equals(final Object 阅读全文
posted @ 2021-03-16 15:42 贾树丙 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 现在同一个工程里有两个module,cas-server-webapp 中依赖了cas-server-webapp-support。 如果写成如下的顺序,那就是从仓库里加载 jar包: <modules> <module>cas-server-webapp</module> <module>cas- 阅读全文
posted @ 2021-03-16 15:30 贾树丙 阅读(265) 评论(0) 推荐(0) 编辑
摘要: private static final char[] LDAP_FILTER_ESCAPE_SEQUENCE = new char[]{'\\', '*', '(', ')', '\0', '/'}; private static final String[] LDAP_FILTER_ESCAPE 阅读全文
posted @ 2021-02-01 16:44 贾树丙 阅读(516) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 39 下一页