Add sponsored access and remove unused codes
This commit is contained in:
@ -67,6 +67,7 @@ public class WebConfig implements WebMvcConfigurer {
|
||||
public FilterRegistrationBean<BaseUrlFilter> getBaseUrlFilter() {
|
||||
Set<String> filterUri = new HashSet<>();
|
||||
filterUri.add("/index");
|
||||
filterUri.add("/");
|
||||
filterUri.add("/onlinePreview");
|
||||
filterUri.add("/picturesPreview");
|
||||
BaseUrlFilter filter = new BaseUrlFilter();
|
||||
@ -80,6 +81,7 @@ public class WebConfig implements WebMvcConfigurer {
|
||||
public FilterRegistrationBean<AttributeSetFilter> getWatermarkConfigFilter() {
|
||||
Set<String> filterUri = new HashSet<>();
|
||||
filterUri.add("/index");
|
||||
filterUri.add("/");
|
||||
filterUri.add("/onlinePreview");
|
||||
filterUri.add("/picturesPreview");
|
||||
AttributeSetFilter filter = new AttributeSetFilter();
|
||||
|
||||
@ -21,6 +21,11 @@ public class IndexController {
|
||||
return "/main/record";
|
||||
}
|
||||
|
||||
@GetMapping( "/sponsor")
|
||||
public String go2Sponsor(){
|
||||
return "/main/sponsor";
|
||||
}
|
||||
|
||||
@GetMapping( "/integrated")
|
||||
public String go2Integrated(){
|
||||
return "/main/integrated";
|
||||
@ -28,7 +33,7 @@ public class IndexController {
|
||||
|
||||
@GetMapping( "/")
|
||||
public String root() {
|
||||
return "redirect:/main/index";
|
||||
return "/main/index";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user