上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 31 下一页
摘要: mybatis plus generator配置 代码生成器AutoGenerator AutoGenerator autoGenerator = new AutoGenerator(); GlobalConfig 全局配置,定义文件的输出目录,设置文件的@author信息等公共配置 GlobalC 阅读全文
posted @ 2021-10-26 12:02 鸭梨的药丸哥 阅读(93) 评论(0) 推荐(0)
摘要: mybatis plus 链式编程查询 通过构造QueryWrapper构造查询语句 HashMap<String, Object> stringObjectHashMap = new HashMap<>(); stringObjectHashMap.put("id", 123); stringOb 阅读全文
posted @ 2021-10-26 11:49 鸭梨的药丸哥 阅读(71) 评论(0) 推荐(0)
摘要: im2rec.py解读 直接给代码,注释我写上了。 #!/usr/bin/env python3 # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contri 阅读全文
posted @ 2021-10-23 18:53 鸭梨的药丸哥 阅读(31) 评论(0) 推荐(0)
摘要: spring security http.rememberMe()使用和原理解析 文章目录 spring security http.rememberMe()使用和原理解析转载请贴上本文链接http.rememberMe()的使用指定Http记住我参数指定Token识别字段修改remember-me 阅读全文
posted @ 2021-09-19 16:16 鸭梨的药丸哥 阅读(101) 评论(0) 推荐(0)
摘要: Refused to display http:// localhost:8080 /xxx’in a frame because it set ‘X-Frame-Options’ to ‘DENY’ 原因 Spring Security4默认是将’X-Frame-Options’ 设置为 ‘DEN 阅读全文
posted @ 2021-09-13 22:33 鸭梨的药丸哥 阅读(109) 评论(0) 推荐(0)
摘要: spring boot security(一) 配置认证和授权 通过继承WebSecurityConfigurerAdapter,可以重写其认证和授权的逻辑。 @Configuration @EnableWebSecurity public class SecurityConfig extends 阅读全文
posted @ 2021-09-13 21:18 鸭梨的药丸哥 阅读(26) 评论(0) 推荐(0)
摘要: spring boot 字体文件等静态资源无法获取 原因 原因maven打包时会过滤掉一些静态文件 解决办法 在pom.xml文件中配置静态资源过滤,然后再放行静态资源,这样就能让maven识别到那些静态资源并打包。 <resources> <resource> <directory>${proje 阅读全文
posted @ 2021-09-06 22:05 鸭梨的药丸哥 阅读(25) 评论(0) 推荐(0)
摘要: IDEA添加模块时,插件报错:java.util.NoSuchElementException: Collection is empty. 解决方法一: 根据github上面的提示说是要在插件中添加设置:(具体看GitHub,但是我没具体看这个到底是不是IDEA的插件) java.util.NoSu 阅读全文
posted @ 2021-08-27 16:30 鸭梨的药丸哥 阅读(86) 评论(0) 推荐(0)
摘要: spring 事务笔记(四) 文章目录 spring 事务笔记(四)spring 事务原理简述声明式事务1. 注解方式配置事务管理器开启事务并使用 2.xml配置方式配置事务管理器配置事务切入点 spring 事务原理简述 之前用spring事务都是直接用注解的方式,后来去试试用xml配置这种,其实 阅读全文
posted @ 2021-08-26 22:50 鸭梨的药丸哥 阅读(21) 评论(0) 推荐(0)
摘要: 更换Spring底层日志框架 spring-jcl 在spring中有一个模块叫做spring-jcl,是Spring的日志框架,底层是会对日志框架进行判断的,是根据日志框架做优先级选取的。 spring-jcl底层日志框架加载优先级 有一个优先级:LOG4J2 级是最高的,其次是SLF4J (>= 阅读全文
posted @ 2021-08-26 00:24 鸭梨的药丸哥 阅读(21) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 31 下一页