com.github.lijian69:jienlee-common-swagger-autoconfigure

公共的springboot装载类

License

License

Categories

Categories

Auto Application Layer Libs Code Generators config Configuration Swagger Program Interface REST Frameworks
GroupId

GroupId

com.github.lijian69
ArtifactId

ArtifactId

jienlee-common-swagger-autoconfigure
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

公共的springboot装载类

Download jienlee-common-swagger-autoconfigure

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.lijian69/jienlee-common-swagger-autoconfigure/ -->
<dependency>
    <groupId>com.github.lijian69</groupId>
    <artifactId>jienlee-common-swagger-autoconfigure</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.lijian69/jienlee-common-swagger-autoconfigure/
implementation 'com.github.lijian69:jienlee-common-swagger-autoconfigure:1.1.0'
// https://jarcasting.com/artifacts/com.github.lijian69/jienlee-common-swagger-autoconfigure/
implementation ("com.github.lijian69:jienlee-common-swagger-autoconfigure:1.1.0")
'com.github.lijian69:jienlee-common-swagger-autoconfigure:jar:1.1.0'
<dependency org="com.github.lijian69" name="jienlee-common-swagger-autoconfigure" rev="1.1.0">
  <artifact name="jienlee-common-swagger-autoconfigure" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.lijian69', module='jienlee-common-swagger-autoconfigure', version='1.1.0')
)
libraryDependencies += "com.github.lijian69" % "jienlee-common-swagger-autoconfigure" % "1.1.0"
[com.github.lijian69/jienlee-common-swagger-autoconfigure "1.1.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter jar
org.springframework.boot : spring-boot-configuration-processor Optional jar
org.springframework.boot : spring-boot-autoconfigure jar
com.github.xiaoymin : knife4j-spring-boot-starter jar 3.0.2

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.12

Project Modules

There are no modules declared in this project.

teach-commons

介绍

TeachApp公共 jar 包,包括 Redis、MQ,Bean等

3、jienlee-common-redis-autoconfigure 工具包

3.1 引入 maven 依赖

该包已经提供自动装载 spring-boot 项目中,直接引入依赖,yml 进行配置即可。

<dependency>
    <groupId>com.github.lijian69</groupId>
    <artifactId>jienlee-common-redis-autoconfigure</artifactId>
    <version>1.0.0</version>
</dependency>

3.2 yml 配置相关的参数

jienlee:
  redis:
    host: 49.232.241.216
    port: 6379
    database: 0
    min-idle: 0
    max-active: 8
    max-idle: 8
    max-wait: -1
    password: ""

3.3 RedisUtil 的引入

    RedisUtil.get(key);
    ......

3、jienlee-common-swagger-autoconfigure 工具包

3.1 引入 maven 依赖

该包已经提供自动装载 spring-boot 项目中,直接引入依赖,yml 进行配置即可。

<dependency>
    <groupId>com.github.lijian69</groupId>
    <artifactId>jienlee-common-swagger-autoconfigure</artifactId>
    <version>1.0.0</version>
</dependency>

3.2 yml 配置相关的参数

jienlee:
  swagger:
    # swagger 扫描的 controller 包    
    base-package: com.start.manager.controller
    # swagger 的 title
    title: jienlee-swagger
    # swagger 的 描述
    description: swagger 接口文档
    # swagger 的 版本
    version: 1.0.0

3.3 启动项目

成功启动后,访问 http://ip:port/doc.html, 如下所示:

image

项目时间线

  1. 2020-07-07 初始化项目,新增 Redis 和 core 的工具包。

Versions

Version
1.1.0
1.0.0