Access server arguments into Spring configuration

1. Introduction

Creating and using server arguments for environment specific configuration is much popular. To keep things clear, here is how we do it.

2. Steps to set server arguments in Tomcat

1. Double-click on the server, which will open the Server Overview window.

2. Towards the top you can see the ‘Open Launch configuration’ link.

Server Overview window

3. Click on the ‘Open Launch configuration’ link.

4. In the window that opens, go to the ‘Arguments’ tab.

Server Arguments window

3. Read the server argument in Spring configuration file

Receive our updates to your inbox

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.