Skip to content

jinzhengquan/springboot-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-template

springboot-template

1. 使用技术

  • Kotlin/Java1.8/GraphQl
  • Gradle 7.0+
  • spring boot、 jpa、mysql、redis
  • junit
  • nacos

2. 核心原则

  • 领域驱动设计 (DDD)
  • 测试驱动开发 (TDD)

3. 如何配置

  1. 参考目录 src/main/resources 中提供的 application-env.template.yml 文件,创建本地配置文件 application-local.yml
  2. 修改 application-local.yml 文件中的配置参数。

4. 如何开发

4.1. 开发工具

  • IDEA 2021.1+

4.2. 安装 Git hook

在项目根目录下执行以下命令

cp pre-commit .git/hooks/

4.3 如何构建

构建为docker

docker build -t spring-template . docker images docker run -d -p 8080:8080 26ea2577a965

统一日志的搭建

https://blog.csdn.net/jinzhengquanqq/article/details/118194813

5.tips

5.1 GraphQL mutation

mutation{ addStudent(name: "test", createdBy: "admin") { id name createdAt } }

5.2 GraphQL query

{ findByName(name:"test", page:0, size:10){ id name createdAt } }

About

springboot-template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published