Spring Boot with JOOQ tutorial
An tutorial application using Spring Boot as REST API with JOOQ back-end.
More details about the codes, please read the online Spring Boot.
Running in
$ ./gradle clean build
$ ./gradle bootRun
schema file
schema.sql
http://localhost:8080/h2-console
gradle file
build.gradle
def xml = new groovy.xml.MarkupBuilder(writer).configuration('xmlns': 'http://www.jooq.org/xsd/jooq-codegen-3.9.2.xsd') {
...
generator() {
...
target() {
packageName('com.warumono.databases') // <----- base package path
directory('src/main/java') // <----- target directory path
}
}
}
By default Spring Boot applications run on port 9090.
But may vary depending on what ports are in use on your machine (check the terminal after entering the ./gradlew bootRun command).
If you require to change which port the application runs on by default, add the following to:
server:
port: 8080 # --> change other port via. 9090
warumono - warumono.for.develop@gmail.com
spring-boot-jooq-tutorial is available under the Apache license. See the LICENSE file for more info.