---
title: "Comment by Yash Khamkar on \"Adding Env variables to your spring-boot project on VS Code.\" | Hashnode"
description: "how do i access these variables"
url: "https://hashnode.com/posts/adding-env-variables-to-your-spring-boot-project-on-vs-code/641c91259a148eac09785371/comment/6487620db0717e8905e24f13"
---

[Discussion](https://hashnode.com/posts/adding-env-variables-to-your-spring-boot-project-on-vs-code/641c91259a148eac09785371)

Comment [Adding Env variables to your spring-boot project on VS Code.](https://hashnode.com/posts/adding-env-variables-to-your-spring-boot-project-on-vs-code/641c91259a148eac09785371)

[Yash Khamkar](https://hashnode.com/@Xash)

[Jun 12, 2023](https://hashnode.com/posts/adding-env-variables-to-your-spring-boot-project-on-vs-code/641c91259a148eac09785371/comment/6487620db0717e8905e24f13)

how do i access these variables

[olaolu johnson](https://hashnode.com/@kastroud)

[Jul 22, 2023](https://hashnode.com/posts/adding-env-variables-to-your-spring-boot-project-on-vs-code/641c91259a148eac09785371/comment/6487620db0717e8905e24f13#reply-64bbdab2a8381eef4cb9101e)

Just create a .env file in the root of your java project

[Eugene Kwaka](https://hashnode.com/@EugeneKwaka)

[Sep 29, 2024](https://hashnode.com/posts/adding-env-variables-to-your-spring-boot-project-on-vs-code/641c91259a148eac09785371/comment/6487620db0717e8905e24f13#reply-66f9b82ede2ff126606878b1)

How do I connect this .env file to my application.properties file and get the values in my project?
