Skip to content

Commit

Permalink
update filter servlert dependency spring-boot 1.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
leelance committed Sep 11, 2017
1 parent fe99c17 commit 781f1bd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.FilterRegistrationBean;
import org.springframework.boot.context.embedded.ServletRegistrationBean;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;

import com.alibaba.druid.support.http.StatViewServlet;
Expand Down
6 changes: 4 additions & 2 deletions spring-boot-shiro-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
<url>http://maven.apache.org</url>

<properties>
<shiro.version>1.2.5</shiro.version>
<shiro.version>1.2.6</shiro.version>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-redis</artifactId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.apache.shiro.web.filter.authc.AnonymousFilter;
import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
import org.apache.shiro.web.session.mgt.DefaultWebSessionManager;
import org.springframework.boot.context.embedded.FilterRegistrationBean;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package com.lance.sitemesh.common;

import org.springframework.boot.context.embedded.FilterRegistrationBean;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebConfig extends WebMvcConfigurerAdapter{
/**
* 装饰器
* 瑁呴グ鍣�
* @return
* 2016年8月27日下午12:37:20
* 2016骞�8鏈�27鏃ヤ笅鍗�12:37:20
*/
@Bean
public FilterRegistrationBean siteMeshFilter(){
Expand Down

0 comments on commit 781f1bd

Please sign in to comment.