![](https://img-blog.csdnimg.cn/20190918140213434.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
分布式工具
分布式用到的工具
十三鸽
这个作者很懒,什么都没留下…
展开
-
springboot整合redis
1.引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <dependency> <gro原创 2021-10-22 18:19:01 · 265 阅读 · 0 评论 -
WebSocket在springboot中的使用
1.添加依赖 <!--WebSocket--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> 2.创建Endpoint原创 2021-10-09 04:39:33 · 438 阅读 · 0 评论 -
定时任务在springboot中使用
1.常用方法@EnableScheduling //开启定时功能的注解@Scheduled //什么时候执行TaskScheduler //任务调度者TaskExecutor //任务执行者Cron表达式2.使用顺序现在springboot的main方法上使用@EnableScheduling开启定时注解@EnableScheduling@SpringBootApplicationpublic class ShiroApplication { public static原创 2021-10-09 00:25:57 · 95 阅读 · 0 评论 -
邮件功能在springboot中的使用
1.添加启动器 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency>2.在yml中配置相关信息spring: mail: username: xxxxxx原创 2021-10-08 07:33:26 · 171 阅读 · 0 评论 -
shiro在springboot中的使用
1.log4j文件编写## Licensed to the Apache Software Foundation (ASF) under one# or more contributor license agreements. See the NOTICE file# distributed with this work for additional information# regarding copyright ownership. The ASF licenses this file#原创 2021-10-08 05:48:24 · 101 阅读 · 0 评论 -
Spring Security
1.简介Spring Security是一个基于AOP思想用于身份验证和权限控制的矿建官网文档入口2.使用导入starter后使用package com.wxk.hello.config;import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;import org.springframework.security.config.an原创 2021-10-07 01:12:03 · 71 阅读 · 0 评论