All Projects → spring-petclinic → Spring Petclinic Kotlin

spring-petclinic / Spring Petclinic Kotlin

Kotlin version of Spring Petclinic

Programming Languages

9241 projects

Projects that are alternatives of or similar to Spring Petclinic Kotlin

Hex Arch Kotlin Spring Boot
Reference JVM multi module project for a reactive micro service and lambda using a hexagonal architecture, DDD, Kotlin, Spring Boot, Quarkus, Lambda, Gradle.
Stars: ✭ 83 (-63.44%)
Mutual labels:  gradle, spring-boot
Spring Webflux template application with working Spring Security, Web-sockets, Rest, Web MVC, and Authentication with JWT.
Stars: ✭ 107 (-52.86%)
Mutual labels:  gradle, spring-boot
Sample Boot Hibernate
Spring Boot + JPA ( Hibernate ) + Java8 [ DDD Sample ]
Stars: ✭ 97 (-57.27%)
Mutual labels:  gradle, spring-boot
Cas Gradle Overlay Template
CAS Gradle Overlay: Generic CAS gradle war overlay to exercise the latest versions of CAS
Stars: ✭ 69 (-69.6%)
Mutual labels:  gradle, spring-boot
Use Spring Boot easy build, Gradle build, and provide update service for XUpdate.(使用Spring Boot简易搭建,Gradle构建,为XUpdate提供更新服务)
Stars: ✭ 149 (-34.36%)
Mutual labels:  gradle, spring-boot
Sample Boot Micro
Spring Cloud + Gradle Multi Project + Java8
Stars: ✭ 72 (-68.28%)
Mutual labels:  gradle, spring-boot
Spring Cloud Microservices Development
Spring Cloud Microservices Development.《Spring Cloud 微服务架构开发实战》
Stars: ✭ 106 (-53.3%)
Mutual labels:  gradle, spring-boot
Spring Streaming
SPA on Spring Boot 1.x, WebSockets and React, gradle, nodejs, spring-boot, gradle multi project, spring-mvc, spring-data, gradle dependency update plugin, react-router
Stars: ✭ 6 (-97.36%)
Mutual labels:  gradle, spring-boot
Nice Knowledge System
📚不积跬步无以至千里,每天进步一点点,Passion,Self-regulation,Love and Share
Stars: ✭ 137 (-39.65%)
Mutual labels:  gradle, spring-boot
Spring Backend Boilerplate
The modularized backend boilerplate based on Spring Boot Framework, easy to get started and add your business part.
Stars: ✭ 134 (-40.97%)
Mutual labels:  gradle, spring-boot
Microservices Example
Example of a microservices architecture on the modern stack of Java technologies
Stars: ✭ 66 (-70.93%)
Mutual labels:  gradle, spring-boot
Springboot Rabbitmq
RabbitMQ为异步消息处理提出了一个很好的解决方案,它是一个非常好用的消息中间件,主要用于中间件的解耦,同时,Spring Boot为RabbitMQ提供了支持, Spring Boot为Rabbit准备了spring-boot-starter-amqp,spring-rabbit 支持 AMQP(即Advanced Message Queuing Protocol,高级消息队列协议,是应用层协议的一个开放标准),并且为RabbitTemplate和RabbitMQ提供了自动配置选项
Stars: ✭ 159 (-29.96%)
Mutual labels:  gradle, spring-boot
Example Kotlin Springboot Graphql
Projeto de exemplo com API GraphQL com dois crud’s simples, utilizando Kotlin, Spring Boot, Gradle etc.
Stars: ✭ 28 (-87.67%)
Mutual labels:  gradle, spring-boot
Okta Blog Archive
Okta Developer Blog
Stars: ✭ 74 (-67.4%)
Mutual labels:  gradle, spring-boot
Login Sample
A simple Android app that allows users to sign up / login / logout.
Stars: ✭ 28 (-87.67%)
Mutual labels:  gradle, spring-boot
Ng Boot Oauth
oauth2 demo with angularjs and springboot
Stars: ✭ 99 (-56.39%)
Mutual labels:  gradle, spring-boot
Ms Backend Boilerplates
Boilerplate for Your Server Side(Backend) Application, Java | Spring(Boot, Cloud) | Node.js(Express, Koa, Egg) | Go | Python | DevOps 💫 服务端项目模板
Stars: ✭ 394 (+73.57%)
Mutual labels:  gradle, spring-boot
Spring Boot Angular2
spring boot backend, angular2 frontend with webpack, typescript, sass, bootstrap4, karma, jasmine
Stars: ✭ 396 (+74.45%)
Mutual labels:  gradle, spring-boot
Downlords Faf Client
Official client for Forged Alliance Forever
Stars: ✭ 121 (-46.7%)
Mutual labels:  gradle, spring-boot
Spring Boot Angular4 Boilerplate
Quickstart for spring boot + angular 4 projects
Stars: ✭ 151 (-33.48%)
Mutual labels:  gradle, spring-boot

Kotlin version of the Spring PetClinic Sample Application

Build Status Docker pulls

This is a Kotlin version of the spring-petclinic Application.

Technologies used

  • Language: Kotlin
  • Core framework: Spring Boot 2 with Spring Framework 5 Kotlin support
  • Server: Netty
  • Web framework: Spring MVC
  • Templates: Thymeleaf and Bootstrap
  • Persistence : Spring Data JPA
  • Databases: H2 and MySQL both supported
  • Build: Gradle Script with the Kotlin DSL
  • Testing: Junit 5, Mockito and AssertJ

Running petclinic locally

With gradle command line

git clone
cd spring-petclinic-kotlin
./gradlew bootRun

With Docker

docker run -p 8080:8080 springcommunity/spring-petclinic-kotlin

You can then access petclinic here: http://localhost:8080/


Database configuration

In its default configuration, Petclinic uses an in-memory database (H2) which gets populated at startup with data. The h2 console is automatically exposed at http://localhost:8080/h2-console and it is possible to inspect the content of the database using the jdbc:h2:mem:{uuid} url (the uuid param could be find in the startup logs).

A similar setup is provided for MySql in case a persistent database configuration is needed. Note that whenever the database type is changed, the file needs to be updated and the mysql-connector-java artifact from the pom.xml needs to be uncommented.

You could start a MySql database with docker:

docker run -e MYSQL_USER=petclinic -e MYSQL_PASSWORD=petclinic -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql:5.7.8

Further documentation is provided here.

Looking for something in particular?

Features Class, files or Java property files
The Main Class PetClinicApplication
Properties configuration file
Gradle build script with Kotlin DSL build.gradle.kts
Caching Configuration CacheConfig

Import and run the project in IntelliJ IDEA

  • Make sure you have at least IntelliJ IDEA 2017.2 and IDEA Kotlin plugin 1.1.60+ (menu Tools -> Kotlin -> configure Kotlin Plugin Updates -> make sure "Stable" channel is selected -> check for updates now -> restart IDE after the update)
  • Import it in IDEA as a Gradle project
    • Go to the menu "File -> New -> Project from Existing Sources... "
    • Select the spring-petclinic-kotlin directory then choose "Import the project from Gradle"
    • Select the "Use gradle wrapper task configuration" radio button
  • In IntelliJ IDEA, right click on PetClinicApplication.kt then "Run..." or "Debug..."
  • Open http://localhost:8080/ in your browser


Publishing a Docker image

This application uses Google Jib to build an optimized Docker image into the Docker Hub repository. The build.gradle.kts has been configured to publish the image with a the springcommunity/spring-petclinic-kotlin image name.

Build and push the container image of Petclinic to the Docker Hub registry:

gradle jib<username><password>

Interesting Spring Petclinic forks

The Spring Petclinic master branch in the main spring-projects GitHub org is the "canonical" implementation, currently based on Spring Boot and Thymeleaf.

This [spring-petclinic-kotlin][] project is one of the several forks hosted in a special GitHub org: spring-petclinic. If you have a special interest in a different technology stack that could be used to implement the Pet Clinic then please join the community there.

Interaction with other open source projects

One of the best parts about working on the Spring Petclinic application is that we have the opportunity to work in direct contact with many Open Source projects. We found some bugs/suggested improvements on various topics such as Spring, Spring Data, Bean Validation and even Eclipse! In many cases, they've been fixed/implemented in just a few days. Here is a list of them:

Name Issue
Spring JDBC: simplify usage of NamedParameterJdbcTemplate SPR-10256 and SPR-10257
Bean Validation / Hibernate Validator: simplify Maven dependencies and backward compatibility HV-790 and HV-792
Spring Data: provide more flexibility when working with JPQL queries DATAJPA-292


The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.

For pull requests, editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at

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].