Professional Documents
Culture Documents
SpringBoot6PM 29042020
SpringBoot6PM 29042020
javabyraghu@gmail.com
https://www.facebook.com/groups/thejavatemple/
------------------------------------------------------------------------
Runners : These are used to execute any logic only one time
while starting application.
============================================================
a. CommandLineRunner (I) :
This is a functional Interface [Interface contains only one abstract method].
It is added in Spring boot 1.0 Version.
it is having abstract method => run(String... args):void
*)Note:
@Component : is a StereoType Annotation, this annotation indicates to
container create object to current class.
#3 Execute Code
> open starter class(class having main method)
> Right click on code > Run As > Spring Boot Application