I
I
ingush2016-12-29 16:16:17
Java
ingush, 2016-12-29 16:16:17

How to get tomcat server environment variables?

Good afternoon!
Is there an alternative to $_SERVER["SSL_CLIENT_M_SERIAL"] for java (spring)? How can I get the environment variables of the tomcat server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Alenkov, 2016-12-29
@ingush

If you need system ones, then I would leave getting through System.getProperty
And if environment variables, then or like this:

@Autowired
private Environment environment;

or via SpEL to a specific variable name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question