How to add a new View?

  • 0
    Hello everyone, my question is more architectural, I have a console application that accepts data, processes it and outputs it to the console, but now I want to expand it and add a WebView, the logic is the same, but the display on the web, I want to implement it using Spring. How can I do this, maybe there is a corresponding pattern, or I need to make a new Web module, or just create a WebView class and put it in a package with ConsoleView?
    This is how my project structure looks now.

    It works like this:
    In the Parser class, all the logic is calculated, there are only two methods, in the Main class I call the parse method from the Parser class and get an ordinary List, and then transfer it to the ConsoleView and draw there
    Java Graham Lam, Jan 3, 2020

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!