资源简介

该压缩包实现了利用过滤器或者拦截器对登录信息进行验证跳转登陆页的功能,利用的是SpringBoot和thymeleaf,使用前请先看使用说明

资源截图

代码片段和文件信息

package com.example.filterdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.embeddedServletContainerCustomizer;
import org.springframework.boot.web.servlet.ErrorPage;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpStatus;

@SpringBootApplication
public class FilterdemoApplication {

public static void main(String[] args) {
SpringApplication.run(FilterdemoApplication.class args);
}
@Bean
public embeddedServletContainerCustomizer containerCustomizer() {

return (container -> {
ErrorPage error401Page = new ErrorPage(HttpStatus.UNAUTHORIZED “/401.html“);
ErrorPage error404Page = new ErrorPage(HttpStatus.NOT_FOUND

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        268  2018-04-13 08:59  filterdemo\.gitignore

     文件        632  2018-04-13 08:59  filterdemo\.idea\compiler.xml

     文件        154  2018-04-13 09:51  filterdemo\.idea\dictionaries\myysql.xml

     文件        294  2018-04-13 08:59  filterdemo\.idea\encodings.xml

     文件        568  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_1_7.xml

     文件        547  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_1_7.xml

     文件        522  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__com_fasterxml_classmate_1_3_3.xml

     文件        644  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_4.xml

     文件        595  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_8_4.xml

     文件        623  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_8_4.xml

     文件        546  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_2_0.xml

     文件        611  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__javax_validation_validation_api_1_1_0_Final.xml

     文件        455  2018-04-13 08:59  filterdemo\.idea\libraries\Maven__junit_junit_4_12.xml

     文件        542  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__net_minidev_accessors_smart_1_1.xml

     文件        521  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__net_minidev_json_smart_2_2_1.xml

     文件        667  2018-04-13 09:53  filterdemo\.idea\libraries\Maven__nz_net_ultraq_thymeleaf_thymeleaf_layout_dialect_1_4_0.xml

     文件        451  2018-04-13 09:53  filterdemo\.idea\libraries\Maven__ognl_ognl_3_0_8.xml

     文件        618  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_6.xml

     文件        604  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_6.xml

     文件        653  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_6.xml

     文件        535  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__org_assertj_assertj_core_2_5_0.xml

     文件        525  2018-04-13 09:53  filterdemo\.idea\libraries\Maven__org_codehaus_groovy_groovy_2_4_7.xml

     文件        532  2018-04-13 08:59  filterdemo\.idea\libraries\Maven__org_hamcrest_hamcrest_core_1_3.xml

     文件        553  2018-04-13 08:59  filterdemo\.idea\libraries\Maven__org_hamcrest_hamcrest_library_1_3.xml

     文件        634  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__org_hibernate_hibernate_validator_5_2_4_Final.xml

     文件        550  2018-04-13 09:53  filterdemo\.idea\libraries\Maven__org_javassist_javassist_3_20_0_GA.xml

     文件        608  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__org_jboss_logging_jboss_logging_3_3_0_Final.xml

     文件        488  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__org_json_json_20140107.xml

     文件        549  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__org_mockito_mockito_core_1_10_19.xml

     文件        508  2018-04-13 09:44  filterdemo\.idea\libraries\Maven__org_objenesis_objenesis_2_1.xml

............此处省略111个文件信息

评论

共有 条评论