![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
常用框架
springBoot、spring、springMVC、mybatis、Hibernate、Shiro、Spring Security、Netty、搜索引擎、ibatis、任务调度、spring batch
我用漂亮的押韵形容被掠夺一空的爱情
编程是技术,更是艺术!
展开
-
Spring Security系列教程之SpringSecurity中的密码加密
Spring Security系列教程之SpringSecurity中的密码加密转载 2023-05-11 02:07:45 · 172 阅读 · 0 评论 -
springBoot 常用注解
常用注解@RequiredArgsConstructor用法在我们写controller或者Service层的时候,需要注入很多的mapper接口或者另外的service接口,这时候就会写很多的@Autowired注解,代码看起来很乱lombok提供了一个注解:@RequiredArgsConstructor(onConstructor =@_(@Autowired))写在类上可以代替@Autowired注解,需要注意的是在注入时需要用final定义,或者使用@notnull注解@Require原创 2021-10-15 11:44:52 · 65 阅读 · 0 评论 -
Netty入门
Netty入门【持续更新,万字长文系列】Netty入门-第一话Netty入门-第二话Netty入门-第三话原创 2021-06-01 13:39:01 · 80 阅读 · 0 评论 -
shiro安全框架
shiro安全框架文章目录shiro安全框架shiro 是什么功能介绍Shiro术语Shiro架构shiro 的主要功能 - 身份认证1 Subject 认证2 Subject 认证主体3 认证流程4 快速搭建 helloWorldshiro 的主要功能 - 授权1 权限认证中的几个元素2 授权的流程3 授权实现ssm 和 shiro 整合AuthenticationToken简介SecurityUtils实现认证Realm密码的MD5加密方案一方案二认证策略 AuthenticationStrategy原创 2021-04-28 14:15:53 · 163 阅读 · 0 评论 -
Spring框架
Spring 统一异常处理的方式参考:Spring 统一异常处理的方式转载 2021-03-30 11:12:40 · 64 阅读 · 0 评论 -
SpringBoot使用Swagger2实现Restful API
SpringBoot使用Swagger2实现Restful API添加依赖<!--swagger2--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</a...原创 2019-10-08 16:39:59 · 120 阅读 · 0 评论 -
springBoot文件上传下载
springBoot文件上传下载springboot项目,前台页面使用的thymeleaf模板前台页面resource下 templates/fileView.html,其中包含单个上传,下载,批量上传。<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> ...原创 2019-09-28 18:06:57 · 158 阅读 · 0 评论 -
SpringBoot使用AOP(动态代理)
SpringBoot使用AOP(动态代理)cgllib 需要添加依赖<!--cglib动态代理--><dependency> <groupId>cglib</groupId> <artifactId>cglib</artifactId> <version>3.2.12</v...原创 2019-09-25 18:14:09 · 1853 阅读 · 0 评论 -
SpringBoot使用AOP(针对注解)
SpringBoot使用AOP(针对注解)AOP简介AOP为Aspect Oriented Programming的缩写,意为:面向切面编程,通过预编译方式和运行期动态代理实现程序功能的统一维护的一种技术AOP是OOP的延续,是软件开发中的一个热点,也是Spring框架中的一个重要内容,是函数式编程的一种衍生范型。AOP可以对业务逻辑的各个部分进行隔离,从而使得业务逻辑各部分之间的耦合度...原创 2019-09-25 18:13:06 · 1591 阅读 · 2 评论 -
SpringBoot使用事务
SpringBoot使用事务使用@Transactional注解来进行事务控制使用controller测试/** * @Description * @Author * @Version V1.0.0 * @Since 1.0 * @Date 2019-09-25 */@Api(value = "test", description = "测试样例文档")@RestC...原创 2019-09-25 18:11:54 · 105 阅读 · 0 评论 -
SpringBoot使用缓存
SpringBoot使用缓存SpringBoot来简单整合缓存,项目,pom文件中加入spring-boot-starter-cache依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring...原创 2019-09-25 18:10:52 · 153 阅读 · 0 评论 -
SpringBoot拦截器
SpringBoot拦截器新建一个拦截器CommonInterceptor,继承HandlerInterceptorAdapter。给大家说一下,在继承HandlerInterceptorAdapter有三个拦截器是经常使用的:1.preHandle在业务处理器处理请求之前被调用2.postHandle在业务处理器处理请求执行完成后,生成视图之前执行3.afterCompletion在D...原创 2019-09-25 18:09:57 · 132 阅读 · 0 评论 -
SpringBoot使用validator校验
SpringBoot使用validator校验创建一个demo类,说一下本文使用demo中校验使用的注解:@NotEmpty:非空@Length:长度,最长或者最短@Email:校验email@Pattern:使用正则校验,本文使用的是身份证的正则public class SegmentVo {@NotNull@NotEmpty(groups={AvailableFligh...原创 2019-09-25 18:08:31 · 608 阅读 · 0 评论 -
SpringBoot定时任务
SpringBoot定时任务springboot整合定时任务其实就两点,创建一个能被定时任务类,方法上加入@Scheduled注解在启动类application上加入@EnableScheduling注解application类代码如下:@EnableScheduling //开启定时@SpringBootApplicationpublic class Springboo...原创 2019-09-25 18:07:22 · 119 阅读 · 0 评论 -
SpringBoot启动banner更改
SpringBoot启动banner更改先介绍一个可以制作自定义banner的网站,传送门:http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20新建banner.txt放入resources下1.在配置文件中加入配置,如下:application.version=mmz在b...原创 2019-09-25 18:06:27 · 129 阅读 · 0 评论 -
使用IntelliJ Idea新建SpringBoot项目
使用IntelliJ Idea新建SpringBoot项目简单给大家介绍一下我来创建SpringBoot项目使用的工具,本人使用IntelliJ Idea来创建项目,利用其中的Spring Initializr工具来快速创建项目。步骤如下:菜单栏中选择File–New–Project,出现如下图所示,然后选择Spring Initializr。其中SDK可以根据自己需求选择合适的jdk版本...原创 2019-09-25 18:03:08 · 317 阅读 · 0 评论