文章分类 - springboot
摘要:<!--Elasticsearch相关依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch<artifactId> </dep
阅读全文
摘要:/** * 定时任务配置 * Created by macro on 2019/4/8. */ @Configuration @EnableScheduling public class SpringTaskConfig { } 列子: /** * Created by macro on 2018/
阅读全文
摘要:<!--SpringSecurity依赖配置--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency>
阅读全文
摘要:<!--redis依赖配置--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> # 自定义r
阅读全文
摘要:@Api:用于修饰Controller类,生成Controller相关文档信息 @ApiOperation:用于修饰Controller类中的方法,生成接口方法相关文档信息 @ApiParam:用于修饰接口中的参数,生成接口参数相关文档信息 @ApiModelProperty:用于修饰实体类的属性,
阅读全文
摘要:添加依赖<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.3.RELEASE</version> <relativ
阅读全文