摘要: 场景 1. Spring Boot + Spring Security搭建一个Web项目。 2. 临时用了inMemoryAuthentication。 ~~~ @EnableWebSecurity public class SecurityConfig extends WebSecurityCon 阅读全文
posted @ 2020-05-02 15:16 i初学者 阅读(2340) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/lvdabao/p/jquery-deferred.html 阅读全文
posted @ 2019-10-23 15:10 i初学者 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 场景 使用catalina.bat start命令启动tomcat7 方案 1. 打开%catalina_home%/conf/logging.properties文件。 2. 将其中的UTF 8代换为GBK。 3. 是与系统编码不一致的原因。 阅读全文
posted @ 2019-10-16 20:53 i初学者 阅读(1797) 评论(0) 推荐(1) 编辑
摘要: 转自:https://blog.csdn.net/adosea/article/details/86136094 阅读全文
posted @ 2019-09-24 14:03 i初学者 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 【问题】 由于上面标记部分,导致启动耗时将近160s,不能忍! 【原因】 此于jvm环境配置有关,请打开jvm安装目录中jre/lib/security/java.security文件,找到securerandom.source配置 服务器启动慢,就与此参数有关。 此处可设置两个值:file:/de 阅读全文
posted @ 2019-07-03 16:44 i初学者 阅读(814) 评论(0) 推荐(0) 编辑
摘要: 事出有因 在向HttpURLConnection的输出流写入内容时,因没有设置charset,导致接收方对数据的验签不一致。 回过头来看,问题看似挺容易解决,只需在获取输出流时,指定字符编码集 但实则费了一番工夫。期间心里产生了过以下的问题: 1、String.getBytes(String cha 阅读全文
posted @ 2018-01-23 12:40 i初学者 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 设置mailx mailx本地邮箱客户端 编辑/etc/mail.rc,在最后插入以下内容 # 发件人set from=xxx@xxxxxx.com.cn# smtp服务器set smtp=smtp.exmail.qq.com # 授权账户set smtp-auth-user=xxx@xxxxxx. 阅读全文
posted @ 2018-01-18 16:26 i初学者 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 问题场景 项目使用的框架:Spring 4.1.4 + Hibernate 4.3.8 + MySQL。 web.xml中对Spring的配置: 项目使用AOP声明式事务配置 采用annotation方式声明Spring Bean。 遇到的问题是:通过Hibernate执行save方法后,数据未能插 阅读全文
posted @ 2018-01-02 14:13 i初学者 阅读(1834) 评论(0) 推荐(1) 编辑
摘要: 样例:http://www.zhaojz.com.cn/demo/draw12.html 依赖:圆 一、定义对象:针 二、定义对象:钟 this.secondHand._erase_(); this.minuteHand._erase_(); this.minuteHand._erase_(); t 阅读全文
posted @ 2015-02-11 09:58 i初学者 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 样例:http://www.zhaojz.com.cn/demo/draw10.html 依赖:【点】、【直线】 阅读全文
posted @ 2015-01-13 11:39 i初学者 阅读(918) 评论(0) 推荐(0) 编辑