spring-boot集成sitemesh装饰器
来源:互联网 发布:旧版淘宝下载安装 编辑:程序博客网 时间:2024/06/06 01:26
spring-boot-sitemesh, 依赖spring-boot-parent
- spring-boot
- EasyUi
- SiteMesh
项目启动访问路径 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/*"); }}@Configurationpublic 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
#Serverserver.port=80server.jsp-servlet.class-name=org.apache.jasper.servlet.JspServletsecurity.basic.enabled=falsemanagement.security.enabled=false#MVCspring.mvc.view.prefix=/WEB-INF/views/spring.resources.static-locations=classpath:/static/security.basic.enabled=falsemanagement.security.enabled=false#LOGlogging.config=classpath:log4j2.xml
完整项目路径
https://github.com/leelance/spring-boot-all/tree/master/spring-boot-sitemesh
0 0
- spring-boot集成sitemesh装饰器
- spring boot 集成 sitemesh
- Springboot集成sitemesh装饰器
- SiteMesh装饰器
- sitemesh装饰器入门
- sitemesh装饰器
- sitemesh装饰器
- 【sitemesh】Jsp的装饰器组件sitemesh
- siteMesh装饰器 指定装饰和不装饰
- 在struts2中加入装饰器sitemesh
- 【SSI开发总结.5】SiteMesh装饰器
- SiteMesh页面装饰器的使用步骤
- web SiteMesh(页面装饰器)
- sitemesh定义多个装饰器
- SiteMesh页面装饰器的使用步骤
- SiteMesh页面装饰器的使用步骤
- sitemesh定义多个装饰器
- SiteMesh--decorator(HTML装饰器)
- Git的下载安装及使用
- spring-boot集成Freemarker开发
- 云计算把Cisco, Dell和HP拍在了沙滩上
- spring-boot 代码生成工具
- 【数据结构】算法8.3 广义表遍历算法
- spring-boot集成sitemesh装饰器
- Discoverer
- spring-boot集成EasyUI和KindEditor
- poj3621 二分+spfa
- spring-boot集成Quartz
- 根据字段名称查询数据库表名
- 2017微软校园招聘笔试题
- 聚焦和增强卷积神经网络
- Linux Nginx 配置 PHP CI 框架 vhost 文件