Created
July 17, 2025 18:12
-
-
Save andresavilesdev/9e3b42097a875b71364a5a51b8a93208 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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