摘要: 需要的依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> yml配置文件中在spring配置下加入对应 阅读全文
posted @ 2021-11-13 12:58 何足道66 阅读(139) 评论(0) 推荐(0)
摘要: /** * 浅拷贝的工具类 */ public class PropertiesUtil { /** * 两个类,属性名一样的元素,复制成员。 */ public static void copy(Object source,Object target){ Class<?> sourceClass= 阅读全文
posted @ 2021-11-12 20:24 何足道66 阅读(336) 评论(0) 推荐(0)
摘要: 需要的依赖: <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.75</version> </dependency> <dependency> <groupId>io. 阅读全文
posted @ 2021-11-12 20:17 何足道66 阅读(214) 评论(0) 推荐(0)
摘要: 1.spring + mybatis: Aop流程: 提前定义好几个用于Aop的类 前置通知:新建MyBeForeAdvice类 实现 MethodBeforeAdvice,并实现其方法 后置通知:新建MyAfterAdvice类 实现 AfterReturningAdvice,并实现其方法 环绕通 阅读全文
posted @ 2021-10-15 11:49 何足道66 阅读(85) 评论(0) 推荐(0)
摘要: 工作流程: 浏览器将用户名、密码、是否记住登录等信息发送给登录controller , new UsernamePasswordToken()获取token,将用户名、加密后的密码、rememberMe,set到token中。SecurityUtils.getSubject();获取subject对 阅读全文
posted @ 2021-10-15 11:41 何足道66 阅读(2276) 评论(0) 推荐(0)