Skip to content

Instantly share code, notes, and snippets.

@andresavilesdev
Created July 17, 2025 18:12
Show Gist options
  • Select an option

  • Save andresavilesdev/9e3b42097a875b71364a5a51b8a93208 to your computer and use it in GitHub Desktop.

Select an option

Save andresavilesdev/9e3b42097a875b71364a5a51b8a93208 to your computer and use it in GitHub Desktop.
@SpringBootApplication
public class GenMailApplication {
public static void main(String[] args) {
// configuring environment variables
Dotenv dotenv = Dotenv.configure().ignoreIfMissing().load();
dotenv.entries().forEach(entry ->
System.setProperty(entry.getKey(), entry.getValue())
);
SpringApplication.run(GenMailApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment