jwt-spring-boot-autoconfigure

jwt integration with springboot.

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы Auto Библиотеки уровня приложения Code Generators config Configuration
Группа

Группа

com.cuisongliu
Идентификатор

Идентификатор

jwt-spring-boot-autoconfigure
Последняя версия

Последняя версия

1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

jwt-spring-boot-autoconfigure
jwt integration with springboot.
Ссылка на сайт

Ссылка на сайт

https://github.com/cuisongliu/jwt-boot-starter
Система контроля версий

Система контроля версий

https://github.com/cuisongliu/jwt-boot-starter

Скачать jwt-spring-boot-autoconfigure

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.cuisongliu/jwt-spring-boot-autoconfigure/ -->
<dependency>
    <groupId>com.cuisongliu</groupId>
    <artifactId>jwt-spring-boot-autoconfigure</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.cuisongliu/jwt-spring-boot-autoconfigure/
implementation 'com.cuisongliu:jwt-spring-boot-autoconfigure:1.3'
// https://jarcasting.com/artifacts/com.cuisongliu/jwt-spring-boot-autoconfigure/
implementation ("com.cuisongliu:jwt-spring-boot-autoconfigure:1.3")
'com.cuisongliu:jwt-spring-boot-autoconfigure:jar:1.3'
<dependency org="com.cuisongliu" name="jwt-spring-boot-autoconfigure" rev="1.3">
  <artifact name="jwt-spring-boot-autoconfigure" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.cuisongliu', module='jwt-spring-boot-autoconfigure', version='1.3')
)
libraryDependencies += "com.cuisongliu" % "jwt-spring-boot-autoconfigure" % "1.3"
[com.cuisongliu/jwt-spring-boot-autoconfigure "1.3"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
io.jsonwebtoken : jjwt jar 0.9.0

Модули Проекта

Данный проект не имеет модулей.

license license

Jwt integration with springboot

Druid-Spring-Boot-Starter 帮助你集成通用 Jwt 到 Spring Boot。

Druid-Spring-Boot-Starter will help you use Jwt with Spring Boot.

How to use

maven

在pom.xml加入nexus资源库(解决中国访问慢的问题,已经加入中央仓库)

Add the following nexus repository(fix china access slow problem,already append to central nexus.) to your pom.xml:

<repositories>
    <repository>
        <id>nexus</id>
        <name>nexus</name>
        <url>http://maven.cuisongliu.com/content/groups/public</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>

在pom.xml加入依赖

Add the following dependency to your pom.xml:

<dependency>
   <groupId>com.cuisongliu</groupId>
   <artifactId>jwt-spring-boot-starter</artifactId>
   <version>1.3</version>
 </dependency>

gradle

在build.gradle加入nexus资源库(解决中国访问慢的问题,已经加入中央仓库)

Add the following nexus repository(fix china access slow problem,already append to central nexus.) to your build.gradle:

allprojects {
    repositories {
        mavenLocal()
        maven { url "http://maven.cuisongliu.com/content/groups/public" }
        mavenCentral()
        jcenter()
    }
}

在build.gradle加入依赖

Add the following dependency to your build.gradle:

compile "com.cuisongliu:jwt-spring-boot-starter:1+"

需要增加fastjson支持,加入即可. Need to increase fastjson support, can be added.

springboot properties set

在application.properties 或者application.yml加入

at application.properties or application.yml append some properties.

properties IsNull? Defaults
spring.jwt.header yes Authorization
spring.jwt.secret yes defaultSecret
spring.jwt.expiration yes 604800L
spring.jwt.authPath yes null
spring.jwt.md5Key yes randomKey

Example

 spring:
     jwt:
        header: Authorization
        secret: defaultSecret
        expiration: 604800L
        authPath:
           - /api
        md5Key: randomKey

Acknowledgments

Jwt.

Версии библиотеки

Версия
1.3
1.2
1.1
1.0