Home  >  Q&A  >  body text

nginx - Regarding the problem of downsizing the javaweb project, after the early development, it was found that the storage space occupied by the project was too large, almost 1.2G. How to achieve downsizing? The dynamic pages are mainly jsp.

1. How to separate the dynamic and static pages of the system and import jsp for separation.

2. The project WebRoot structure is as follows:
Picture description

3. How to separate these plug-ins and static files so that they are not placed in the webroot directory. You can configure the storage location yourself. Can this be achieved using nginx?
I have never learned nginx, and I am very anxious to ask for guidance. Now in a confused state. The static data and plug-ins under the project's webroot are placed below
Now I just want to put the webroot into the jsp file, how to implement this
4. Each jsp is not big, but I don't know why the project takes up such a big area space, so I need to lose weight, please give me some advice

高洛峰高洛峰2734 days ago721

reply all(4)I'll reply

  • 怪我咯

    怪我咯2017-05-16 17:09:53

    There are too many jar packages. Are resource files also placed in the project? Pictures take up a lot of space

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 17:09:53

    First determine what file size it is

    reply
    0
  • 黄舟

    黄舟2017-05-16 17:09:53

    I agree with what was said above. Please give the author an analysis of the file type occupation, so that everyone can help you make suggestions. js and pages can occupy 1.2G. Such textual things need to be large to occupy so much of the project.

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 17:09:53

    Use maven to build, divide the large project into small modules, and then configure dependencies in each module.

    reply
    0
  • Cancelreply