New posts for Spring and Hibernate

This commit is contained in:
2026-11-06 01:05:27 +05:30
parent 51913ad9d4
commit dc13293046
136 changed files with 5268 additions and 0 deletions
@@ -0,0 +1,12 @@
# CommandLineRunner and ApplicationRunner beans sorted together by @Order / Ordered
(declaration order in OrderingApp.java is NOT the order below)
CommandLineRunner @Order(HIGHEST_PRECEDENCE)
ApplicationRunner @Order(1) on the class
CommandLineRunner @Order(2) on the class
ApplicationRunner implements Ordered, getOrder() = 3
Both @Order(4) -> ApplicationRunner.run
Both @Order(4) -> CommandLineRunner.run
CommandLineRunner @Order(5) on a @Bean method
ApplicationRunner no order at all (lowest precedence)