ServletRequest proxy_req = (ServletRequest) Proxy.newProxyInstance(req.getClass().getClassLoader(), req.getClass().getInterfaces(), new InvocationHandler()我跟着视频教程写的代码,视频里可以,为什么我这里会提示类型无法转换
你要看下你导的包对不对。同类名存在多个不同的包。