Skip to content

Commit d5a0288

Browse files
authored
Update readme.md
1 parent caee487 commit d5a0288

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

run-on-startup/readme.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
# How to Execute Code on Spring Boot Application Startup?
22

3-
Read my blog post here.
4-
https://stacktips.com/articles/how-to-execute-code-on-spring-boot-application-startup
3+
Spring boot offers multiple options, for executing your code during the application startup. This post covers some of the ‘out of the box’ practices recommended by the Spring developers. There are mainly 3 options
4+
5+
- Option-1: Using @PostConstruct annotation
6+
- Option-2: Using ApplicationRunner or Command Line Runner Interface
7+
- Option-3: Using Spring Boot Events
8+
9+
In this article, we will cover all of the available options and look into the best practices dos and don'ts.
10+
11+
12+
Read [full article on stacktips.com](https://stacktips.com/articles/how-to-execute-code-on-spring-boot-application-startup)
13+
14+
15+
16+
### Related topics:
17+
18+
* [#spring-boot](https://stacktips.com/topics/spring-boot)
19+
* [#android](https://stacktips.com/topics/android)
20+
* [#java](https://stacktips.com/topics/java)
21+
* [#python](https://stacktips.com/topics/python)
22+
* [#spring](https://stacktips.com/topics/spring)
23+
* [#design-pattern](https://stacktips.com/topics/design-pattern)
24+
* [#git](https://stacktips.com/topics/git)
25+
* [#maven](https://stacktips.com/topics/maven)

0 commit comments

Comments
 (0)