dblogin-client

A simple client login to the registry Spring project connects registries by adding clients

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

cn.p00q.dblogin
ArtifactId

ArtifactId

client
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

dblogin-client
A simple client login to the registry Spring project connects registries by adding clients
Project URL

Project URL

https://github.com/danbai225/dblogin/tree/master/client
Source Code Management

Source Code Management

https://github.com/danbai225/dblogin.git

Download client

How to add to project

<!-- https://jarcasting.com/artifacts/cn.p00q.dblogin/client/ -->
<dependency>
    <groupId>cn.p00q.dblogin</groupId>
    <artifactId>client</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/cn.p00q.dblogin/client/
implementation 'cn.p00q.dblogin:client:1.0'
// https://jarcasting.com/artifacts/cn.p00q.dblogin/client/
implementation ("cn.p00q.dblogin:client:1.0")
'cn.p00q.dblogin:client:jar:1.0'
<dependency org="cn.p00q.dblogin" name="client" rev="1.0">
  <artifact name="client" type="jar" />
</dependency>
@Grapes(
@Grab(group='cn.p00q.dblogin', module='client', version='1.0')
)
libraryDependencies += "cn.p00q.dblogin" % "client" % "1.0"
[cn.p00q.dblogin/client "1.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-autoconfigure jar 2.2.4.RELEASE
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.2.4.RELEASE
com.squareup.okhttp : okhttp jar 2.7.5
com.alibaba : fastjson jar 1.2.61

Project Modules

There are no modules declared in this project.

db

淡白登陆注册

只是一个简单纯粹的登陆注册中心.只做一件事就是登陆和注册.用于几个小项目间不必重复注册的问题.

搭建服务端

git项目到本地 修改项目application配置 sql建表 构建项目 运行

客服端

sping项目可直接添加依赖

<dependency>
  <groupId>cn.p00q.dblogin</groupId>
  <artifactId>client</artifactId>
  <version>1.0.1</version>
</dependency>

在application配置中添加

danbai:
  dblogin:
    passwordManagement: "DanBai" #没用口令可不要
    serviceURL: "http://127.0.0.1:8085"

在需要使用的地方注入 如:

    @Autowired
    DBlogin dBlogin;

其他项目 使用http接入

  • /login 登陆
  • /logout 退出登陆
  • /tokenTime token过期时间
  • /register 注册
  • /username token获取用户名
  • /delete 删除用户
  • /user 查询用户是否存在
  • /newPass 修改密码

Versions

Version
1.0