---
title: "Discussion on \"Adding Env variables to your spring-boot project on VS Code.\" | Hashnode"
description: "Discussion on \"Adding Env variables to your spring-boot project on VS Code.\". Spring Boot is a powerful framework for building Java-based web applications that can be developed quickly and easily. However, configuring your Spring Boot project to work with specific environments can be a challenge. One of the most common ways to..."
url: "https://hashnode.com/posts/adding-env-variables-to-your-spring-boot-project-on-vs-code/641c91259a148eac09785371"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Adding Env variables to your spring-boot project on VS Code.](https://kastroud.hashnode.dev/adding-env-variables-to-your-spring-boot-project-on-vs-code?utm_source=hashnode&utm_medium=feed)

Spring Boot is a powerful framework for building Java-based web applications that can be developed quickly and easily. However, configuring your Spring Boot project to work with specific environments can be a challenge. One of the most common ways to...

Mar 23, 2023 · 2 min read · kastroud.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#vscode](https://hashnode.com/tag/vscode)
-   [#setup](https://hashnode.com/tag/setup)

## Written by

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

@kastroud

  
[View profile](https://hashnode.com/@kastroud)

Software developer, Working to increase business productivity

## Responses 1

Markdown supported · ⌘↵ to post

[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

[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?
