文章分类 -  springboot

摘要:<!--Elasticsearch相关依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch<artifactId> </dep 阅读全文
posted @ 2021-04-21 22:59 chenzquan 阅读(105) 评论(0) 推荐(0) 编辑
摘要:/** * 定时任务配置 * Created by macro on 2019/4/8. */ @Configuration @EnableScheduling public class SpringTaskConfig { } 列子: /** * Created by macro on 2018/ 阅读全文
posted @ 2021-04-21 22:29 chenzquan 阅读(52) 评论(0) 推荐(0) 编辑
摘要:<!--SpringSecurity依赖配置--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> 阅读全文
posted @ 2021-04-21 00:02 chenzquan 阅读(290) 评论(0) 推荐(0) 编辑
摘要:<!--redis依赖配置--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> # 自定义r 阅读全文
posted @ 2021-04-19 22:48 chenzquan 阅读(122) 评论(0) 推荐(0) 编辑
摘要:@Api:用于修饰Controller类,生成Controller相关文档信息 @ApiOperation:用于修饰Controller类中的方法,生成接口方法相关文档信息 @ApiParam:用于修饰接口中的参数,生成接口参数相关文档信息 @ApiModelProperty:用于修饰实体类的属性, 阅读全文
posted @ 2021-04-19 22:35 chenzquan 阅读(159) 评论(0) 推荐(0) 编辑
摘要:添加依赖<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.3.RELEASE</version> <relativ 阅读全文
posted @ 2021-04-19 21:53 chenzquan 阅读(40) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示