title: Spring and thymeleaf with html as resources
body: <p>I am learning java ee related technologies (and I am relatively newbie) and try to write simple web application with Spring and Thymeleaf as frontend, and i have some problems with
  modularization.</p>
  
  <p>I found that it is used to pack .html filesinto WEB-INF directory for security purposes, but, as far as i guess, it means I have to put there all of my views, have controllers in this projects. I want to avoid that by having many projects for example:</p>
  
  <ul>
  <li>web-app</li>
  <li>admin-module</li>
  <li>user-module</li>
  <li>core-module</li>
  </ul>
  
  <p>and each of them has its own, module specific controllers and views (htmls) and web-app
  combines them all into single, big project.</p>
  
  <p>In Thymelaf i found something like ClassLoaderTemplateResolver and got (maybe stupid idea) how to divide big project into many ones - put htmls into classpath resource directory.
  By this I can ask for any html view from any module project. Does this violates some security reasons?</p>
  
  <p>I would like to ask does anyone has similar problem and found proper solution how to elegantly divide html web-app project into many smaller 'context-specific' projects?</p>
  
  <p>Here is my current project structure. Blue arrow idicates which view is connected to which controller:
  <a href="http://prntscr.com/4tqt9m" rel="nofollow">http://prntscr.com/4tqt9m</a></p>
  
  <p>This is my first question asked here so I hope you will treat me with some understanding.</p>
  
  <p>Thank you in advance.</p>