0
点赞
收藏
分享

微信扫一扫

【漏洞复现】SpringBlade menu/list SQL注入漏洞

惠特曼 2024-10-30 阅读 9

1.WebConfig

package com.jmj.gulimall.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class GulimallWebConfig implements WebMvcConfigurer {


@Override
public void addViewControllers(ViewControllerRegistry registry) {

/**
* 视图解析器自动解析转发
*/

registry.addViewController("/login.html")
.setViewName("login");
registry.addViewController("/reg.html")
.setViewName("reg");
}
}

2.记录一下阿里云 OSS怎么设置生命周期让文件过期删除

举报

相关推荐

0 条评论