Skip to content

Instantly share code, notes, and snippets.

@abeosoft
Forked from up1/Application.java
Created April 24, 2018 18:25
Show Gist options
  • Save abeosoft/b020d3c9272deed3faec545cc024e5ac to your computer and use it in GitHub Desktop.
Save abeosoft/b020d3c9272deed3faec545cc024e5ac to your computer and use it in GitHub Desktop.
Twelve Factor App with Spring Boot
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Autowired
void setEnvironment(Environment e) {
System.out.println(e.getProperty("configuration.projectName"));
}
}
version: '3'
services:
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
redis:
image: "redis:alpine"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment