该springboot项目用于存储磁力链接以及进行用户管理
spring、springmvc、mybatis、redis、springboot、jwt
- 磁力链接的添加、删除、更改、查询
- 用户信息的管理
- 用户登录检验
- token签发
- 请求拦截token验证
- RESTful API返回数据封装
- 时段磁力收录表格(excel)下载
配置文件application.yml
server:
port: 8082
spring:
redis:
host: 127.0.0.1
port: 6379
timeout: 20000
database: 0
jedis:
pool:
max-active: 8
max-wait: -1
max-idle: 500
min-idle: 0
lettuce:
shutdown-timeout: 0
datasource:
username: root
password: root
url: jdbc:mysql://localhost:3306/message_system?useSSL=false&serverTimezone=GMT
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
properties:
hibernate:
ddl-auto: update
format_sql: true
database-platform: org.hibernate.dialect.MySQLDialect
show-sql: false
mvc:
view:
prefix: /templates/
suffix: .html
mybatis:
mapper-locations: classpath:mapping/*Mapper.xml
type-aliases-package: com.message.entity
# jwt 配置
custom:
jwt:
# header:凭证(校验的变量名)
header: Authorization
# 有效期1天(单位:s)
#expire: 5184000
# token有效期s
expire: 86400
# secret: 秘钥(普通字符串) 不能太短,太短可能会导致报错
secret: 99c2918fe19d30bce25abfac8a3733ec
# 签发者
issuer: kbdog
POST 127.0.0.1:8082/login/validate
POST 127.0.0.1:8082/login/message
GET 127.0.0.1:8082/queryMagnet/all
POST 127.0.0.1:8082/queryMagnet/keyword
GET 127.0.0.1:8082/queryMagnet/all/{currentPage}/{pageNum}
PUT 127.0.0.1:8082/queryMagnet/add_magnet
DELETE 127.0.0.1:8082/queryMagnet/delete_magnet
DELETE 127.0.0.1:8082/queryMagnet/batch/delete
PUT 127.0.0.1:8082/queryMagnet/update_magnet
POST 127.0.0.1:8082/queryMagnet/query_TimeReport
POST 127.0.0.1:8082/queryMagnet/downloadExcel
GET 127.0.0.1:8082/queryMagnet/count