Skip to content

kaipaysen/playground-jdk14-records-as-dto

Repository files navigation

Example Application

Exploring howto use Java 14/15/16/17 Records as DTOs in Spring RestController.

Build and Test

mvn clean package
export JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000
java -jar ./target/playground.java17.records.jar
curl -X POST -H "Content-Type: application/json" -d '{"name":"Max"}' http://localhost:8080/hello 

Related

About

Example Application showing howto use Java 14 Records as dtos in Spring RestController

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages