March 3, 2017

List all Environment Variables

The system variables are exposed through the GetEnvironmentVariables method in the System.Environment class. var environmentVariables = System.Environment.GetEnvironmentVariables();foreach (var ev in environmentVariables){ DictionaryEntry de = (DictionaryEntry) ev; Console.WriteLine(string.Format(“Key: {0}, Value: {1}”,

Use the @RestController Annotation

It is a good idea to use @RestController (instead of simply @Controller), because it ensures you that it will return a Java Object rather than a reference to an HTML