It's simple.
Spring Controller, no filter controllers are easier to connect.
Make the theme simple (one css file, one js file, several images), this will help.
themeresource . theme_id, theme_name, theme_description. themeresource resource_id, theme_id, , (blob). ( Hibernate)
DAO ( Hibernate)
ThemeController. "/theme/resources".
, , (:/theme/resources/style.css).
, - ThemeResolver
style.css( ) , DAO
- /, , .