This is the Spring MVC portion of a benchmarking test suite comparing a variety of web development platforms.
An embedded undertow is used for the web server.
There are four implementations :
- For postgresql access, JdbcTemplate is used. See JdbcDbRepository.
- For postgresql access, Spring Data JDBC is used. See DataJdbcDbRepository.
- For postgresql access, jOOQ is used. See JooqDbRepository.
- For mongoDB access, MongoTemplate is used. See MongoDbRepository.
http://localhost:8080/plaintext
http://localhost:8080/json
http://localhost:8080/db
http://localhost:8080/queries?queries=5
http://localhost:8080/updates?queries=5
http://localhost:8080/fortunes
The jOOQ version requires Java classes generated from the database schema into
src/main/jooq/hello/db. In order to generate them, you need to run a postgresql container and
then execute the Maven jooq-codegen:generate command:
(../../../toolset/databases/postgres && docker run -p 5432:5432 --rm "$(docker build -q -f postgres.dockerfile .)")mvn jooq-codegen:generate