org.pickwicksoft.jheroku-keep-alive 1.0.0 Latest version
Install 1/2: Add this to pom.xml:
Learn more about Maven or Gradle
<dependency>
<groupId>org.pickwicksoft</groupId>
<artifactId>jheroku-keep-alive</artifactId>
<version>1.0.0</version>
</dependency>
Install 2/2: Run via command line
$ mvn install
About this package
This minimalistic java library brings a powerful annotation to your Java Spring Boot application and prevents your app from sleeping on the free Heroku plan!
🎉 This is the first Release!
To use this library in your Web Application, use it from our GitHub packages:
https://github.com/orgs/PickwickSoft/packages
JHeroku-keep-alive provides the following annotation @HerokuKeepAlive
Use this annotation like that:
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.pickwicksoft.jherokukeepalive.HerokuKeepAlive;
@HerokuKeepAlive
@SpringBootApplication
public class WebApp {
public static void main(String[] args) {
SpringApplication.run(WebApp.class, args);
}
}
The annotation adds a spring service to your application that starts a GET request to https//localhost:8080 every five minutes, wich prevents the Heroku machine from shutting down.
Details
- PickwickSoft
- May 02, 2022
- 4 dependencies
- GNU GPLv3
Assets
Download activity
- Total downloads 1
- Last 30 days 0
- Last week 0
- Today 0
Topics
Recent versions
-
1.0.0
May 2, 2022