Class ArtDemoCli

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

    @SpringBootApplication
    public class ArtDemoCli
    extends Object
    implements org.springframework.boot.CommandLineRunner
    Command line interface for the demo. Takes no parameters. It outputs the content of the demo repository, then adds some data and outputs the content of the repository again.

    Accessing the repository is done via the ArtService class, which just encapsulates accesses to the PaintingDao and ArtistDao classes.

    Since:
    4.0.0
    Author:
    Florian Kleedorfer
    • Constructor Detail

      • ArtDemoCli

        public ArtDemoCli()
    • Method Detail

      • main

        public static void main​(String[] args)
      • run

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