How to package JS,css by JSp in JAVA Environment

now the project is done in the early stage of the java background, which is a JSP page under the java environment. The pure html+css+jq, code is messy and redundant, and there are the same methods directly with each other. If you want to package JS,css, how to deal with it, ask for advice? How to uniformly control the version number of js,css? the
structure directory that can be done at the front end is as follows:

Mar.09,2021
Menu