Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

io.github.allanmarques83:spring-dot-environments

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

io.github.allanmarques83:spring-dot-environments

Set environments variables in Spring Boot

  • 1.0.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

spring-dot-environments

Provides a library for setting environment variables in the Spring Boot framework

Installation

In your pom.xml add the following dependency:

<dependency>
	<groupId>io.github.allanmarques83</groupId>
	<artifactId>spring-dot-environments</artifactId>
	<version>1.0.0</version>
</dependency>

Usage

1 . Put the .env file in your .gitignore

2 . In your Spring Boot project, add a .env file in the resources path. E.g:

SOME_ENV=Basic 123

3 . Apply the annotation @DotEnv in your SpringBoot application file. E.g:

@SpringBootApplication
@DotEnv
public class MyApplication {
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GPL-3.0

FAQs

Package last updated on 27 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc