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