Simple example to check out why @RequestBody is displayed as string data type (instead of MessageDto).
- Java 1.8
- Maven >= 3.2.1
git clone https://github.com/larmic/SpringBootAndSwaggerUI
mvn clean package
mvn spring-boot:run
and open http://localhost:8080/swagger-ui.html#!/message-resource/sendMessageUsingPOST
Parameter message is displayed as data type string