Answer the question
In order to leave comments, you need to log in
How to add a new View?
Hello everyone, my question is more architectural, I have a console application that receives 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 I want to implement the display on the web using Spring. How can I do this, maybe there is an appropriate pattern, or do 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 the structure of my project looks now.
It works like this:
All logic is calculated in the Parser class, there are only two methods, in the Main class I call the parse method from the Parser class and get the usual List, and then I pass it to the ConsoleView and draw it there
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question