会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
满Sir
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
9
10
11
12
13
14
下一页
2021年12月8日
常见SQL优化方法
摘要: SQL优化的一些方法 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num
阅读全文
posted @ 2021-12-08 11:16 满Sir
阅读(241)
评论(0)
推荐(0)
2021年12月6日
Spring Boot 常用注解汇总
摘要: Spring Boot 常用注解汇总 一、启动注解 @SpringBootApplication @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited @SpringBootConfi
阅读全文
posted @ 2021-12-06 15:02 满Sir
阅读(234)
评论(0)
推荐(0)
spring boot启动原理
摘要: 我们开发任何一个Spring Boot项目,都会用到如下的启动类 1 @SpringBootApplication 2 public class Application { 3 public static void main(String[] args) { 4 SpringApplication.
阅读全文
posted @ 2021-12-06 14:57 满Sir
阅读(147)
评论(0)
推荐(0)
SpringBoot创建定时任务
摘要: 阅读目录: 序言 一、静态:基于注解 二、动态:基于接口 三、多线程定时任务 阅读正文: 回到顶部 序言 使用SpringBoot创建定时任务非常简单,目前主要有以下三种创建方式: 一、基于注解(@Scheduled) 二、基于接口(SchedulingConfigurer) 前者相信大家都很熟悉,
阅读全文
posted @ 2021-12-06 14:37 满Sir
阅读(1038)
评论(0)
推荐(0)
正则表达式总结
摘要: 本节内容 正则表达式简介 正则表达式中的字符 元字符详解 常用正则表达式实例 正则表达式的匹配过程 正则表达式中的标志位-flag 参考资料 需要提前说明的是: 正则表达式的语法是由正则表达式引擎决定的(目前主流的正则引擎分为3类:DFA、传统型NFA 和 POSIX NFA),不同编程语言或应用程
阅读全文
posted @ 2021-12-06 14:10 满Sir
阅读(89)
评论(0)
推荐(0)
史上最全常用正则表达式大全
摘要: 一、校验数字的表达式 1. 数字:^[0-9]*$ 2. n位的数字:^\d{n}$ 3. 至少n位的数字:^\d{n,}$ 4. m-n位的数字:^\d{m,n}$ 5. 零和非零开头的数字:^(0|[1-9][0-9]*)$ 6. 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(
阅读全文
posted @ 2021-12-06 14:07 满Sir
阅读(457)
评论(0)
推荐(0)
RedisUtil写法,好用
摘要: 代码: import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframewor
阅读全文
posted @ 2021-12-06 09:50 满Sir
阅读(120)
评论(0)
推荐(0)
【SpringBoot】SpingBoot整合AOP
摘要: 说起spring,我们知道其最核心的两个功能就是AOP(面向切面)和IOC(控制反转),这边文章来总结一下SpringBoot如何整合使用AOP。 一、示例应用场景:对所有的web请求做切面来记录日志。 1、pom中引入SpringBoot的web模块和使用AOP相关的依赖: 其中:cglib包是用
阅读全文
posted @ 2021-12-06 09:49 满Sir
阅读(333)
评论(0)
推荐(0)
Spring Boot实践——AOP实现
摘要: 借鉴:http://www.cnblogs.com/xrq730/p/4919025.html https://blog.csdn.net/zhaokejin521/article/details/50144753 http://www.importnew.com/24305.html AOP介绍
阅读全文
posted @ 2021-12-06 09:30 满Sir
阅读(229)
评论(0)
推荐(0)
SpringBoot事务注解详解
摘要: @Transactional spring 事务注解 1.简单开启事务管理 @EnableTransactionManagement // 启注解事务管理,等同于xml配置方式的 <tx:annotation-driven /> 2.事务注解详解 默认遇到throw new RuntimeExcep
阅读全文
posted @ 2021-12-06 09:21 满Sir
阅读(348)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
下一页
公告