File was renamed from pipIrr-platform/pipIrr-mw/pipIrr-mwTest-server/src/main/java/com/dy/testServer/forRmi/ResStartVo.java |
| | |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | |
| | | public class ResStartVo { |
| | | public class ResStartTcpConnectVo { |
| | | |
| | | public boolean success = true ; |
| | | |
| | |
| | | * @return 对象 |
| | | * @throws Exception 异常 |
| | | */ |
| | | public static ResStartVo jsonToObject(String json)throws Exception{ |
| | | public static ResStartTcpConnectVo jsonToObject(String json)throws Exception{ |
| | | try{ |
| | | return JSON.parseObject(json, ResStartVo.class) ; |
| | | return JSON.parseObject(json, ResStartTcpConnectVo.class) ; |
| | | //return new JSONDeserializer<ResStartVo>().deserialize(json, ResStartVo.class) ; |
| | | }catch(Exception e){ |
| | | throw new Exception(e.getMessage() , e ) ; |