So the project I want to convert is at https://github.com/zhongjis/keyword_search_engine_xlsm.
This program intends to build a search engine based on the user input files (xlsm). It extracts content from an XLSM (excel) file first and stores them to the DB. while building up the database, the program will also calculate some special numbers such as td-idf which will be used later for result ranking.
It appears that you want to create a Web Application.
The easiest way to get started is to use Spring Boot, which is the 'opinionated' version of Spring, meaning that it uses smart defaults. You should start by using the Initializer to generate your project: https://start.spring.io/. Keep generating and testing until you get what you want.
The simplest method is to build an executable JAR, which will contain your web server and can be run anywhere you have Java. This is the default setting on Initializer site above. My advice: Accept Spring Boot defaults until you know what you're doing.
GUI: The simplest method is to use Thymeleaf templates to display your HTML.
Controller: Learn how to write a basic controller to return a Thymeleaf template. The simplest way to begin is with standard HTML posting to your controller.
Docs A great strength of Spring is the ample documentation. See: https://spring.io/guides/gs/serving-web-content/ and: https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html