Class AppRunner

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

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

      • log

        private static final org.slf4j.Logger log
      • cache

        private final org.springframework.data.redis.cache.RedisCache 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
      • saveBook

        private void saveBook​(String isbn)
      • fetch

        private void fetch​(String isbn)
      • stat

        private void stat()
      • clearCache

        private void clearCache()
      • sep

        private void sep​(String s)