86183
2022-09-09 0d999e33085c0a25c5525242748f6aa62a401159
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//package com.gtzx.upms.utils;
//
//import java.io.IOException;
//import java.io.InputStream;
//import java.io.ObjectInputStream;
//import java.io.ObjectStreamClass;
//
//public class MyObjectInputStream  extends ObjectInputStream {
//
//
//    protected MyObjectInputStream() throws IOException, SecurityException {
//        super();
//    }
//
//    public MyObjectInputStream(InputStream arg0) throws IOException {
//        super(arg0);
//    }
//
//    @Override
//    protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {
//        String name = desc.getName();
//        try {
//            if (name.startsWith("com.gtzx.upms")) {
//                name = name.replace("com.gtzx.upms", "cn.mb.cloud.gateway");
//            }
//            return Class.forName(name);
//        } catch (ClassNotFoundException ex) {
//            ex.printStackTrace();
//        }
//        return super.resolveClass(desc);
//    }
//}