Skip to content

warumono-for-develop/spring-boot-jooq-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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.

Requirements

Running in

Optional

  • YAML
  • Logback

Dependencies

Latest Update

  • 1.0 (Apr 20, 2017)

How to Run

$ ./gradle clean build
  • Build the project gradle build
  • Run the application ./gradlew bootRun
$ ./gradle bootRun

Check Java code with Database

schema file schema.sql

  • connect database
http://localhost:8080/h2-console

gradle file build.gradle

  • target packages
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
		}
	}
}

API

Configuration

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:

application.yml

server:
    port: 8080 # --> change other port via. 9090

Author

warumono - warumono.for.develop@gmail.com

License

spring-boot-jooq-tutorial is available under the Apache license. See the LICENSE file for more info.

Releases

No releases published

Packages

No packages published

Languages