spring-boot-sitemesh, 依赖spring-boot-parent
项目启动访问路径 http://localhost/admin/index
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.5.RELEASE</version>
</parent>
<dependency>
<groupId>org.sitemesh</groupId>
<artifactId>sitemesh</artifactId>
<version>3.0.1</version>
</dependency>
public class WebSiteMeshFilter extends ConfigurableSiteMeshFilter{ @Override protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) { builder.addDecoratorPath("/admin/*", "/admin/index") .addExcludedPath("/admin/index") .addExcludedPath("/plugin/*"); } } @Configuration public class WebConfig extends WebMvcConfigurerAdapter{ /** * 装饰器 * @return * 2016年8月27日下午12:37:20 */ @Bean public FilterRegistrationBean siteMeshFilter(){ FilterRegistrationBean fitler = new FilterRegistrationBean(); WebSiteMeshFilter siteMeshFilter = new WebSiteMeshFilter(); fitler.setFilter(siteMeshFilter); return fitler; } }
application.properties
#Server server.port=80 server.jsp-servlet.class-name=org.apache.jasper.servlet.JspServlet security.basic.enabled=false management.security.enabled=false #MVC spring.mvc.view.prefix=/WEB-INF/views/ spring.resources.static-locations=classpath:/static/ security.basic.enabled=false management.security.enabled=false #LOG logging.config=classpath:log4j2.xml
https://github.com/leelance/spring-boot-all/tree/master/spring-boot-sitemesh
相关推荐
spring-boot-sitemesh 源码整合
SpringMVC-Freemarker_Sitemesh3例子, maven构建。
SiteMesh is a web-page layout and decoration framework and web- application integration framework to aid in creating sites consisting of many pages for which a consistent look/feel, navigation and ...
在WebWork中集成SiteMesh相当容易: 实际上什么也不用做. WebWork把全部值栈数据都保存在请求attribute中, 这意味着如果想显示值栈(或ActionContext)中的数据, 只需使用WebWork附带的标准标签库, 就这么简单!那来看完...
sitemesh-2.4.1.jar sitemesh-2.4.1.jar sitemesh-2.4.1.jar sitemesh-2.4.1.jar sitemesh-2.4.1.jar sitemesh-2.4.1.jar
struts2-sitemesh-plugin-2.0.8.jar
struts2-sitemesh-plugin-2.0.14.jar struts2-spring-plugin-2.3.20.jar trove4j-2.0.2.jar ueditor-1.1.1.jar unoil-3.0.1.jar userSystem-1.0.jar velocity-1.5.jar xmemcached-2.0.0.jar xmemcached-...
NULL 博文链接:https://mgxy123.iteye.com/blog/1565892
概述 Struts 2.0提供一个Sitemesh插件... 缺省情况下,sitemesh假定装饰器文件保存在应用上下文根路径下的decorators目录下,如果采用如上配置,装饰器文件应该是ftl格式,如果需要使用其他格式,需要更改过滤器配置。
#slife spring boot 搭建的一个企业级快速开发脚手架。 ###技术栈 Spring Boot MySQL Freemark SiteMesh Shiro Bootstrap mybatis、mybatisPlus redis Activiti
struts2-sitemesh-plugin-2.1.6.jar
采用webwork+spring+ibatis+sitemesh组合开发的框架示例系统
sitemesh-2.4.2.jar slf4j-api-1.7.7.jar slf4j-log4j12-1.7.7.jar spring-aop-4.1.9.RELEASE.jar spring-beans-4.1.9.RELEASE.jar spring-context-4.1.9.RELEASE.jar spring-context-support-4.1.9.RELEASE.jar ...
sitemesh-2.2.1.jar
struts2-sitemesh-plugin-2.2.1.1.jarstruts2
struts2-sitemesh-plugin-2.1.8.1.jar
sitemesh-2.4.2-src.jar 是sitemesh的源文件jar包,当调试时需要选择该jar包进行资源查找,很好用的页面架构工具
Struts2+Spring+Hibernate+sitemesh做的一个在线音乐站点写的一个在线音乐 的站点.功能实现的相对比较粗糙(如歌曲列表没考虑分页什么的),另外只能使用IE(使用了ActiveX 控件播放音乐的).
spring jsp freemaker sitemesh
用sitemesh页面装饰器,将大名鼎鼎的开源即时通讯服务器openfire中运用的,布局页面抽取出来。MyEclipse中可以直接部署的代码。