我在代码的其他地方定义了一个document['key']。基本上是由客户在html <script></script>标记中设置的API键,如下所示。<script type="text/javascript"> document.clientKey = 'a uuid unique to client';
我正在尝试将两个对象(CustomerAcct和Product)从角2发送到restful服务(Java )。我使用的是一个名为CustProduct的包装器对象,其中包含两个对象,CustomerAcct和Product。在后端,CustomerAcct对象为null,而Product为空。这是我的代码:CustProduct类:
export class CustProduct { public ca: CustomerAcct; public prod