I run a Spring-Boot application (v2.7) via Eclipse Run configuration. In the Program arguments section, I pass the parameter
--server.jsp-servlet.init-parameters.development=true
But this doesn't seem to have any effect. When running the application, pageContext.getServletConfig().getInitParameter("development")
returns false
.
There is no other location where the init-parameters
property is set.
What am I missing?
EDIT: when I set the parameter in (already existing) application.yaml it works.
server:
servlet:
jsp:
init-parameters:
development: true
But I need to set it via command line ...