摘要: Spring Boot 集成 MyBatis, 分页插件 PageHelper, 通用 Mapper配置调用 Spring Boot 集成 MyBatis, 分页插件 PageHelper, 通用 Mapper 配置 pom依赖 org.mybatis.spring.boot mybatis-spring-boot-starter 1.3.1 t... 阅读全文
posted @ 2019-01-17 16:12 紫月java 阅读(361) 评论(0) 推荐(0) 编辑
摘要: springboot整合mybatis一套开源框架:https://github.com/abel533/MyBatis-Spring-Boot 使用mybatis+分页插件pagehelper整合;pom org.mybatis.spring.boot mybatis-spring-boot-starter 1.3.1 tk.mybatis mapp... 阅读全文
posted @ 2018-12-25 19:22 紫月java 阅读(252) 评论(0) 推荐(0) 编辑
摘要: springboot使用AOP概述AOP是一种编程范式,与语言无关,是一 种程序设计思想 ;面向切面 (AOP): Aspect Oriented Programming 面向对象 (OOP) :Object Oriented Programming 面向过程 (POP) :Procedure Oriented Programming 使用案例:pom org.springframe... 阅读全文
posted @ 2018-12-25 19:19 紫月java 阅读(229) 评论(0) 推荐(0) 编辑
摘要: springboot拦截器 2.0之前的拦截器(WebMvcConfigurerAdapter) 使用注解 @Configuration配置拦截器 继承WebMvcConfigurerAdapter 重写addInterceptors 添加需要的拦截器地址 @Configuration public class WebMvcConfigurer extends WebMvcConfigu... 阅读全文
posted @ 2018-12-25 19:19 紫月java 阅读(171) 评论(0) 推荐(0) 编辑
摘要: springboot异步执行1.使用场景◆发送短信◆发送邮件◆App消息推送◆节省运维凌晨发布任务时间提供效率2.使用(1)配置注解:主类:@EnableAsync//开启异步调用方法任务类:类注解:@Component//注入springboot方法注解:@Async@Component public class AsyncTask { @Async public Future d... 阅读全文
posted @ 2018-12-25 19:18 紫月java 阅读(342) 评论(0) 推荐(0) 编辑
摘要: springboot整合Redispom org.springframework.boot spring-boot-starter-data-redis 1 2 3 org.springframework.boot4 spring-boot-starter-data-redis5 ap... 阅读全文
posted @ 2018-12-25 13:26 紫月java 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 方法1:pom.xml直接添加依赖: org.springframework.boot spring-boot-devtools true 66 1pom.xml直接添加依赖:23 org.springframework.boot4 spring-boot-devtools5 true6方法2::(修改后可以立即部署)在build中添加dependenc... 阅读全文
posted @ 2018-12-21 18:09 紫月java 阅读(210) 评论(0) 推荐(0) 编辑
摘要: C#的注释一般分为两类:1)单行注释。格式:// Comments 或者 ///(XML注释的一级注释)2)多行注释。格式:/* Comments... */c#中//注释和///注释的区别来源:https://www.cnblogs.com/liuyaozhi/p/4910221.html ///:会被编译,会减慢编译的速度(但不会影响执行速度)//:不会被编译,使用///:会在其它的人调用... 阅读全文
posted @ 2018-12-20 16:54 紫月java 阅读(2935) 评论(0) 推荐(0) 编辑
摘要: 在 中添加 阅读全文
posted @ 2018-12-18 10:22 紫月java 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Java实现Base64加密第1章 概述1-1 密码的常用术语1-3 密码分类1-3-1散列函数1-3-2数字签名1-4 OSI与TCP/IP安全体系1-4-1OSI安全体系1-4-2 TCP/IP安全体系1-5 java安全组成、包及第三方扩展第2章 Base64算法实现2-1 实现Base64算 阅读全文
posted @ 2018-12-15 10:51 紫月java 阅读(3934) 评论(0) 推荐(0) 编辑