Skip to content

Latest commit

 

History

History

jimmer-simple-kt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Simplest Demonstration of Jimmer ORM (Kotlin)

English | 中文


Introduction

This example has very simple functionality, demonstrating how to use Jimmer through unconditional queries in a simple way.

Kotlin Symbol Processing

The project depends on KSP. When first opening this project in IntelliJ, you may notice that some automatically generated code is missing. To resolve this, you can choose either of the following methods:

  • First use the command line to execute ./gradlew build in the project directory to complete code generation, then open the project with IntelliJ.

  • Open the project directly with IntelliJ, temporarily ignore the IDE errors, and after dependencies are downloaded, run the project's main method or unit tests (save-command/save-command-kt demonstrates functionality through unit tests). All IDE errors will automatically disappear, and the application will start correctly.

How to Run

  1. After ensuring the missing code has been generated and is recognized by IntelliJ, simply run the main method in App.kt.

  2. Use a browser to visit http://localhost:8080/openapi.html


⇦ Previous Example ⇦ | ⇧ Return to Parent ⇧ | ⇨ Next Example ⇨