1. move static resources to static folder. So nginx can cache these files easily; 2. adjust static in spring resource mapping; 3. change jsp static files reference; 4. nginx config generation works ok for transparent cache the static files for tomcat; 5. https tested on static and dynamic files; 5. redirect url is ok;