Reason: because boot2.3. X may consider information security issues, the following two values are defaulted to
server: error: include-message: never include-exception: false
The exception is returned
{ "timestamp": 1632713940269, "status": 500, "error": "Internal Server Error", "message": "", "path": "/xxxx" }
After modification
server: error: include-message: always include-exception: true
The exception is returned
{ "timestamp": 1632713940269, "status": 500, "error": "Internal Server Error", "exception": "com.xxxx.xxxxException", "message": "Illegal access", "path": "/xxxxx" }
Similar Posts:
- Cmake: How to Connect boost Library
- C write and read file via FILE and open method in a+ or r mode
- Accessdeniedhandler configured in spring security does not take effect
- [Solved] include(../template/header.html): failed to open stream: No such file or dir…
- [Solved] Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
- [Solved] Protobuf & cmake Low Version Error: Could not find a package configuration file provided by “Protobuf” with any of the following names: ProtobufConfig.cmake
- [Solved] Dependency injection exception: org.springframework.beans.factory.UnsatisfiedDependencyException
- Using SQLite to show undefined reference to ` SQLite3_ open’…
- Mac: Python Install lxml Error: Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed
- Python3 ImportError: No module named _ssl [How to Solve]