Skip to content

Instantly share code, notes, and snippets.

View lavish10's full-sized avatar
🎯
Focusing

Lavish Yadav lavish10

🎯
Focusing
View GitHub Profile
@lavish10
lavish10 / workflows.yml
Created May 8, 2020 07:07
Github Actions workflow for Gradle build and deploy
# This workflow will build a Java project with Gradle and deploy it on server
# deploy.sh will take the given parameters and perform the necessary operations, deploy.sh runs `docker-compose pull` and `docker-compose up -d`
name: Java CI with Gradle
on:
push:
branches: [ master ]
@jahe
jahe / spring-boot-cheatsheet.java
Last active September 3, 2025 14:31
Spring Boot Cheatsheet
// Enable component-scanning and auto-configuration with @SpringBootApplication Annotation
// It combines @Configuration + @ComponentScan + @EnableAutoConfiguration
@SpringBootApplication
public class FooApplication {
public static void main(String[] args) {
// Bootstrap the application
SpringApplication.run(FooApplication.class, args);
}
}