Answer the question
In order to leave comments, you need to log in
How to create a Java application with a Web interface?
I want to create a simple Java application with a web interface.
Conditionally there is a page with a button and a field, I click on the button and let's say "Hello World" is displayed.
Of course, I don’t plan to put this application on a server or something like that, everything will be launched locally.
What is needed for this? What classes/libraries/frameworks should be used for this?
PS I can write an application in Java, I can make up a page, but I don’t understand how to “attach” it, but Google gives out how to make a complex application with installing it on a server and a bunch of unnecessary functions
Answer the question
In order to leave comments, you need to log in
Here is a simple guide: https://spring.io/guides/gs/serving-web-content/
Plain html with thymeleaf template engine
Spring Boot solves your problem a little more than completely.
You open Spring initializr , mark the necessary features, get a ready-made application that can be run locally or even deployed on the server, if necessary.
And actually in this template you add any features you need.
Good afternoon.
Conditionally there is a page with a button and a field, I click on the button and let's say "Hello World" is displayed.
Of course, I don’t plan to put this application on a server or something like that, everything will be launched locally.
What is needed for this? What classes/libraries/frameworks should be used for this?
I can write an application in Java, I can make up a page, but I don’t understand how to “attach” it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question