Skip to content

vkingw/spring-boot-jpa-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-jpa-rest

Spring Boot Accessing JPA Data with REST

这是一个Spring boot的例子

集成了WebSocket、redis、springfox-swagger2、jwt

src/resources/application.yml中配置redis参数等

请在终端中执行

./gradlew bootRun 

访问 http://localhost:9000/swagger-ui.html 查看自定义Controller API

通过tokens POST 获取token,然后在请求中带上

X-Auth-Token : token

访问http://localhost:8080/api即可。

如需打包jar,请执行

./gradlew build -i   

所有请求请在header中加入

X-Auth-Token : XXX

如有问题请联系 alfa.king+git@gmail.com

About

Spring Boot Accessing JPA Data with REST

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published