English | 中文
This example has very simple functionality, demonstrating how to use Jimmer through unconditional queries in a simple way.
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.
-
After ensuring the missing code has been generated and is recognized by IntelliJ, simply run the
main
method in App.kt. -
Use a browser to visit http://localhost:8080/openapi.html
⇦ Previous Example ⇦ | ⇧ Return to Parent ⇧ | ⇨ Next Example ⇨