All Projects → osahner → kotlin-spring-boot-rest-jpa-jwt-starter

osahner / kotlin-spring-boot-rest-jpa-jwt-starter

Licence: MIT License
kotlin spring-boot 2 rest/jpa/jwt starter

Programming Languages

kotlin
9241 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to kotlin-spring-boot-rest-jpa-jwt-starter

Ee7 Jaxrs Sample
Building RESTful APIs with Java EE 7 and JAXRS
Stars: ✭ 15 (-53.12%)
Mutual labels:  jwt, jpa
Dokit
基于 Spring Boot2、 Jpa、 Spring Security、JWT、redis、Vue的前后端分离的后台管理系统开发平台, 用户管理、菜单管理、角色管理、字典管理、权限控制的方式为RBAC,操作日志、异常日志、接口限流、项目支持数据权限管理,支持一键生成前后端代码(支持在线预览及打包下载),支持前端菜单动态路由 可一键部署服务器应用,数据库。系统中活跃用户状态监控,监视当前系统CPU、内存、磁盘、堆栈等相关信息,基于Element UI在线表单设计及生成Vue代码。
Stars: ✭ 348 (+987.5%)
Mutual labels:  jwt, jpa
Springboot Learn
🌹springboot常用框架整合示例,涉及多种网站监控,数据缓存,网络通信,持久层,权限管理,常用工具等
Stars: ✭ 270 (+743.75%)
Mutual labels:  jwt, jpa
Bcmall
以教学为目的的电商系统。包含ToB复杂业务、互联网高并发业务、缓存应用;DDD、微服务指导。模型驱动、数据驱动。了解大型服务进化路线,编码技巧、学习Linux,性能调优。Docker/k8s助力、监控、日志收集、中间件学习。前端技术、后端实践等。主要技术:SpringBoot+JPA+Mybatis-plus+Antd+Vue3。
Stars: ✭ 188 (+487.5%)
Mutual labels:  jwt, jpa
X Admin
致力于快速开发中小型后台管理系统项目模板(更新中......)
Stars: ✭ 123 (+284.38%)
Mutual labels:  jwt, jpa
Spring Boot 2 Oauth2 Authorization Jwt
Spring Boot 2 OAuth2 JWT Authorization server implementation with Database for Users and Clients (JPA, Hibernate, MySQL)
Stars: ✭ 115 (+259.38%)
Mutual labels:  jwt, jpa
Xboot
基于Spring Boot 2.x的一站式前后端分离快速开发平台XBoot 微信小程序+Uniapp 前端:Vue+iView Admin 后端:Spring Boot 2.x/Spring Security/JWT/JPA+Mybatis-Plus/Redis/Elasticsearch/Activiti 分布式限流/同步锁/验证码/SnowFlake雪花算法ID 动态权限 数据权限 工作流 代码生成 定时任务 社交账号 短信登录 单点登录 OAuth2开放平台 客服机器人 数据大屏 暗黑模式
Stars: ✭ 3,432 (+10625%)
Mutual labels:  jwt, jpa
Online Learning Cloud Platform
👀在线学习平台,前端主要技术:Angular,后端主要技术:springboot (项目包含前台,后台上传失误,可能丢失代码......分为前台展示系统及后台管理系统。前台系统包含首页门户、多级菜单、问题页面、免费课程、练习页面等模块。 后台管理系统包含课程管理、用户管理、管理员管理、评论管理等模块。系统介绍及详细功能点、技术点见项目内文档描述)
Stars: ✭ 117 (+265.63%)
Mutual labels:  jwt, jpa
Jersey Jwt
Example of REST API with JWT authentication using Jersey, Jackson, Undertow, Weld, Hibernate and Arquillian.
Stars: ✭ 131 (+309.38%)
Mutual labels:  jwt, jpa
Eladmin
项目基于 Spring Boot 2.1.0 、 Jpa、 Spring Security、redis、Vue的前后端分离的后台管理系统,项目采用分模块开发方式, 权限控制采用 RBAC,支持数据字典与数据权限管理,支持一键生成前后端代码,支持动态路由
Stars: ✭ 16,943 (+52846.88%)
Mutual labels:  jwt, jpa
spring-boot-java-swing-reservations
The project aims to present how to connect Spring Boot 2 and Java Swing GUI widget toolkit. All application dependencies are provided by Docker Compose. There are also static code analysis tools like FindBugs and Checkstyle.
Stars: ✭ 86 (+168.75%)
Mutual labels:  jpa
SimpleCurd
2个类,实现类ActiveRecord,无需写Mapper, mybatis增强
Stars: ✭ 14 (-56.25%)
Mutual labels:  jpa
spring-boot-jpa
A Spring Boot microservices reference application using Spring Data JPA
Stars: ✭ 25 (-21.87%)
Mutual labels:  jpa
2021-darass
🧩 웹 페이지 어디든 간편하게 추가하는 댓글 모듈 서비스 "다라쓰"
Stars: ✭ 54 (+68.75%)
Mutual labels:  jpa
migrate-Java-EE-app-to-azure
Migrate an existing Java EE workload to Azure
Stars: ✭ 12 (-62.5%)
Mutual labels:  jpa
Smart-Contract-Verifier
This project is to create a system that uses DeFi technology to enforce contracts. Users will be able to set up contracts between each other, this includes an escrow service for payments. If users disagree over whether a contract was fulfilled, a jury appointed by the system will make the final decision.
Stars: ✭ 16 (-50%)
Mutual labels:  jpa
springboot-chapter
🚀Spring Boot 2.0基础教程。主流框架整合,实践学习案例。
Stars: ✭ 23 (-28.12%)
Mutual labels:  jpa
betca-spring
BETCA (Spring). Back-end con Tecnologías de Código Abierto, versión Java-Spring
Stars: ✭ 27 (-15.62%)
Mutual labels:  jpa
LazyREST
基于Sping全家桶实现的极速产出RESTful类接口脚手架
Stars: ✭ 21 (-34.37%)
Mutual labels:  jpa
jframework
基于对spring boot的二次封装,目的是减少重复代码,提高开发效率
Stars: ✭ 88 (+175%)
Mutual labels:  jpa

kotlin-spring-boot-rest-jpa-jwt-starter

Build Status codecov

Features:

  • spring-boot 2.6.x
  • kotlin 1.6.x
  • JWT Authentication/Authorization with spring-security inspired by Auth0
  • JPA mysql / OpenCVS / POI
  • Travis CI / codecov

Install & play

  • create a mysql db
-- for mysql 5.7
CREATE DATABASE starterspringkotlin;
GRANT ALL ON starterspringkotlin.* TO starterspringkotlin@localhost IDENTIFIED BY 'starterspringkotlin';
FLUSH PRIVILEGES;
-- for mysql 8
CREATE DATABASE starterspringkotlin;
CREATE USER 'starterspringkotlin'@'localhost' IDENTIFIED BY 'starterspringkotlin';
GRANT ALL PRIVILEGES ON starterspringkotlin.* TO 'starterspringkotlin'@'localhost';
FLUSH PRIVILEGES;

check src/main/resources/application.yaml for mysql 5.7 or 8 support (keys are spring.jpa.database-platform and spring.datasource.url)

  • compile & integration tests
mvn -Ddockerfile.skip clean compile test
  • run app
mvn spring-boot:run
  • some CLI tests
curl http://localhost:4080/starter-test/api/v1/test
# result: Pong!%

curl http://localhost:4080/starter-test/api/v1/restricted
# result {"timestamp":"***","status":403,"error":"Forbidden","message":"Access Denied","path":"/starter-test/api/v1/restricted"}%

curl -s -i -H "Content-Type: application/json" -X POST -d '{ "username": "john.doe", "password": "test1234"}' http://localhost:4080/starter-test/login | grep Authorization
# result: Authorization: Bearer ***

curl  -H "Authorization: Bearer ***"  http://localhost:4080/starter-test/api/v1/restricted
# result: Pong!%

Docker

mvn clean package -Dmaven.test.skip=true
docker run -it -p 8888:8888 --rm osahner/kotlin-spring-boot-rest-jpa-jwt-starter:latest

curl http://localhost:8888/starter-test/api/v1/test
# result: Pong!%

Why

This is my tiny backend cookbook. I need and use it on regular basis for different small to midsized projects.

  • Like it -> use it.
  • Found an error -> please tell me.

Changelog

  • v0.8.1-SNAPSHOT: spring-boot 2.6.x
  • v0.8.0-SNAPSHOT: renamed default branch to main, spring-boot 2.5.x, kotlin 1.4.10
  • v0.7.1-SNAPSHOT: spring-boot 2.4.0
  • v0.6.6-SNAPSHOT: spring-boot 2.3.4, kotlin 1.4.10, update docker build
  • v0.6.5-SNAPSHOT: spring-boot 2.3.2, kotlin 1.3.72, fix JPA uneccessary creation of hibernate_sequence and join tables without primary key, enhanced PoiExportService
  • v0.6.4-SNAPSHOT: spring-boot 2.2.4, kotlin 1.3.70, fix REST API naming convention
  • v0.6.1-SNAPSHOT: add Docker
  • v0.6.0-SNAPSHOT: update spring-boot 2.2.0.RELEASE, add address controller with csv import an xls export
  • v0.5.0-SNAPSHOT: spring-boot 2.1.9, and kotlin 1.3.50
  • v0.4.1-SNAPSHOT: spring-boot 2.1.3 and kotlin 1.3.21, add codecov, fixed code style, fix tests, add coverage
  • v0.3.1-SNAPSHOT: update jdk11, spring-boot 2.1.2 and kotlin 1.3.20
  • v0.1.0-SNAPSHOT: switch to jar packaging standalone app, update kotlin 1.2.61, jwt 0.10.5
  • v0.0.5-SNAPSHOT: update spring-boot 2.0.4.RELEASE, kotlin 1.2.60, jwt 0.10.1

Rename local master branch to main

git branch -m master main
git fetch origin
git branch -u origin/main main

LICENCE

MIT © Oliver Sahner

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].