主页模块调试 以及部分代码修改
parent
ef40348586
commit
985742b79a
Binary file not shown.
@ -0,0 +1,27 @@
|
||||
package me.mofun.config;
|
||||
|
||||
import org.sitemesh.builder.SiteMeshFilterBuilder;
|
||||
import org.sitemesh.config.ConfigurableSiteMeshFilter;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class MySiteMeshFilter extends ConfigurableSiteMeshFilter {
|
||||
|
||||
@Override
|
||||
protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
|
||||
|
||||
// 添加排除规则
|
||||
builder.addExcludedPath("*/productTypeMenuList.jsp");
|
||||
builder.addExcludedPath("/menuList/productTypeMenuList.jsp");
|
||||
builder.addExcludedPath("/WEB-INF/template/my/list/menuList/productTypeMenuList.jsp");
|
||||
builder.addExcludedPath("/WEB-INF/template/my/list/menuList/productTypeMenuListResult.jsp");
|
||||
builder.addExcludedPath("/editor/*");
|
||||
|
||||
// 添加装饰器映射
|
||||
builder.addDecoratorPath("*/WEB-INF/template/*", "/my/template_footer.jsp")
|
||||
.addDecoratorPath("*/WEB-INF/template/**", "/root/index_template.jsp")
|
||||
.addDecoratorPath("*/WEB-INF/admin/*", "/admin_main.jsp")
|
||||
.addDecoratorPath("*/WEB-INF/admin/*", "/admin_template.jsp")
|
||||
.addDecoratorPath("*/WEB-INF/template/my/products/serviceLogic/*", "/serviceLogic_template.jsp");
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue