
Springboot
linhaibing009
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot声明式事务的简单运用
Spring声明式事物的实现,有两种方式;第一种是配置xml,第二种是使用相关注解,SpringBoot中默认配置了第二种方式,所以,SpringBoot直接使用注解即可。下面介绍SpringBoot通过注解事物注解方式的使用。springboot默认已经帮我们配置好了注解方式,可以直接使用即可。测试结果结果,springboot默认已经帮我们配置好注解方式,不...原创 2019-10-29 15:44:23 · 133 阅读 · 0 评论 -
SpringBoot配置Pagehelper分页插件实现自动分页
方法一:<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>4.2.1</version>...原创 2019-11-06 18:43:39 · 796 阅读 · 0 评论 -
SpringBoot中使用redis事务
参考链接:https://www.jianshu.com/p/c9f5718e58f0转载 2019-10-21 14:31:55 · 146 阅读 · 0 评论 -
ShedLock-轻量级分布式定时任务重复执行解决方案
https://blog.csdn.net/turbo_zone/article/details/83422168原创 2019-10-19 17:43:43 · 260 阅读 · 0 评论 -
spring-boot整合spring-session,使用redis共享
https://www.jianshu.com/p/cdf327a6a5a4原创 2019-10-19 17:33:19 · 130 阅读 · 0 评论 -
Springboot 整合 sqlite + 通用mapper
添加mven<!--Mybatis --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> ...原创 2019-10-13 23:22:39 · 1559 阅读 · 0 评论 -
springboot security 自定义 AuthenticationEntryPoint 和 AccessDeineHandler
找了大半天的资料终于在国外的网站上找到了,相关问题,不过还好把security的认证流程和授权流程又重新看了遍:AuthenticationEntryPoint 用来解决匿名用户访问无权限资源时的异常AccessDeineHandler 用来解决认证过的用户访问无权限资源时的异常...原创 2019-11-06 18:44:09 · 395 阅读 · 0 评论 -
springboot 发送电子信箱
开始前准备第一步:pom文件引入 <!-- 电子邮件 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</a...原创 2019-10-08 11:31:01 · 812 阅读 · 0 评论 -
Caused by: java.lang.ClassNotFoundException: org.springframework.cloud.client.loadbalancer.LoadBalan
没有发现包,可能没导入maven中,或者 导入冲突例如:问题原因:解决:去除版本号就可以,用springboot中父项目帮你管理版本即可原创 2019-08-10 19:03:04 · 12996 阅读 · 0 评论 -
EnableEurekaServer 注解无法导入问题
最近再添加eureka依赖时总是无法成功引入导致程序@enableeurekaserver报错最终找到原因是springboot与springcloud的支持版本不一致除需要对应上springboot 和 springcloud之间的 版本号外,还需要注意cloud代号的不同后缀也会出现版本不一致,例如下面:自己代码中出现@enableeurekaserver引入不进...原创 2019-08-10 16:52:32 · 2295 阅读 · 0 评论