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.
高洛峰
高洛峰 2017-05-16 17:07:53
0
4
728

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

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(4)
刘奇

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

伊谢尔伦

First determine what file size it is

黄舟

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.

小葫芦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template