@@ -0,0 +1,670 @@
+package com.lance.sitemesh.common;%0A%0Aimport org.springframework.boot.context.embedded.FilterRegistrationBean;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;%0A%0A@Configuration%0Apublic class WebConfig extends WebMvcConfigurerAdapter%7B%0A%09/**%0A%09 * %E8%A3%85%E9%A5%B0%E5%99%A8%0A%09 * @return%0A%09 * 2016%E5%B9%B48%E6%9C%8827%E6%97%A5%E4%B8%8B%E5%8D%8812:37:20%0A%09 */%0A%09@Bean%0A%09public FilterRegistrationBean siteMeshFilter()%7B%0A%09%09FilterRegistrationBean fitler = new FilterRegistrationBean();%0A%09%09WebSiteMeshFilter siteMeshFilter = new WebSiteMeshFilter();%0A%09%09fitler.setFilter(siteMeshFilter);%0A%09%09return fitler;%0A%09%7D%0A%7D

add sitemesh filter registe