当前位置:网站首页>6.7 theme resolver theme style parser (in-depth analysis of SSM and project practice)

6.7 theme resolver theme style parser (in-depth analysis of SSM and project practice)

2020-11-06 01:14:49 Memory

6.7 ThemeResolver Theme style parser

The theme , It means literally , It's the style and style of the whole system .Spring MVC The theme provided (Theme) You can set the overall style of the application . That is to set up a collection of static resources (CSS style , Pictures, etc ), To control the visual effects of the system . It's very convenient to create a theme , Developers just need to prepare resources , newly build ”*.properties” file , Allocate resources to , Put it in classes Or something else from 】 Define the path , You can use .

6.7.1 ThemeResolver initialization

It's also in DispatcherServlet Class initStrategies In the method , To initialize ThemeResolver, It's running initThemeResolver Method .

Code list 6-32:DispatcherServlet Class initThemeResolver Method

版权声明
本文为[Memory]所创,转载请带上原文链接,感谢