Exception message not included in response when throwing ResponseStatusException in Spring Boot

前端 未结 1 1425
星月不相逢
星月不相逢 2021-01-01 11:04

My Spring Boot application provides the following REST controller:

@RestController
@RequestMapping(\"/api/verify\")
public class VerificationController {

           


        
相关标签:
1条回答
  • 2021-01-01 11:42

    This behavior has changed with Spring Boot 2.3 and is intentional. See release notes for details.

    Setting server.error.include-message=always in the application.properties resolves this issue.

    0 讨论(0)
提交回复
热议问题