Class AppRunner

  • All Implemented Interfaces:
    org.springframework.boot.CommandLineRunner

    @Component
    public class AppRunner
    extends Object
    implements org.springframework.boot.CommandLineRunner
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
      • cache

        private final org.springframework.cache.Cache cache
    • Constructor Detail

      • AppRunner

        public AppRunner​(org.springframework.cache.CacheManager cacheManager,
                         BookRepository bookRepository)
    • Method Detail

      • run

        public void run​(String... args)
                 throws Exception
        Specified by:
        run in interface org.springframework.boot.CommandLineRunner
        Throws:
        Exception