下單失敗,原因為undefined
Failed to load http://localhost:8090/order/createorder: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404.
瀏覽器報錯是跨域問題,可我OrderController和getItem.html兩邊都設(shè)置了跨域的那句代碼,這是怎么回事?和jquery版本有關(guān)系嗎,我用的是3.3.1
2019-01-19
找到原因了,注解里create少打了e? ?太扎心了