When I call / route address with no parameters or when there is an error, in the server response I have redundant information even about the java version, which is not safe.
How to disable stackTrace information in server response?
is there any parameter for production mode?
openjdk version “11.0.15” 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-post-Debian-1deb11u1, mixed mode, sharing)