为了简单起见,我只考虑了两种类型:"LifeInsurance“和"AutoInsurance”。我想要实现的是,如果创建策略的JSON请求包含"type":"AUTO_INSURANCE“,那么请求应该映射到AutoInsurance.class,同样对于LifeInsurance,但目前在springSystem.out.println(p.getClass());
//SpringApplication.run(EPolicyApplication.class, ar
下面是spring引导中的方法: publicboolean saveProjectToClient(@RequestBody DTO dto){
System.out.println("Person id : "+dto.getIdPerson: Can not deserialize instance of long out of ST