摘要: 生成sign前,按照参数名ASCII字典序排序生成字符串 阅读全文
posted @ 2018-04-23 17:16 YKKKK 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1.inputStream.markSuppored() == true; 可以使用mark()和reset()来实现二次读取 2.当inputStream不支持mark和reset时, 从StackoverFlow找到答案 https://stackoverflow.com/questions/9 阅读全文
posted @ 2018-04-23 17:15 YKKKK 阅读(533) 评论(0) 推荐(0) 编辑
摘要: springboot项目引入thymeleaf模板时,默认thymeleaf模板对html5标签是严格检查的。要实现非严格检查 1. 在项目中加NekoHTML库 在Maven中添加依赖 <dependency> <groupId>net.sourceforge.nekohtml</groupId> 阅读全文
posted @ 2018-04-23 17:13 YKKKK 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 原因:拦截器加载的时间点在springcontext之前,所以在拦截器中注入自然为null ; 解决方法:配置拦截器链的类中先注入这个拦截器,示例: @Configuration public class WebConfig extends WebMvcConfigurerAdapter { //注 阅读全文
posted @ 2018-04-23 17:13 YKKKK 阅读(489) 评论(0) 推荐(0) 编辑