axios.get 傳第三個參數給 .Net Core WebApi,如果三個值都有時WebApi可以接收到
但如果只傳遞了兩個參數其中一個是NULL或空值時就抓不到
解決方法如下在Startup輸入以下
services.AddControllers(options => options.SuppressImplicitRequiredAttributeForNonNullableReferenceTypes = true);
services.AddControllers(options => options.SuppressImplicitRequiredAttributeForNonNullableReferenceTypes = true);
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 此憑證鏈結是由不受信任的授權單位發出的。)連線字串有問題
Server=192.168.0.1;Database=xxdb;user id=test;password=test1234;加入TrustServerCertificate=true
Server=192.168.0.1;Database=xxdb;user id=test;password=test1234;TrustServerCertificate=true;參考資料