摘要:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
阅读全文
posted @ 2021-08-03 14:36
sportdog
阅读(37)
推荐(0)
摘要:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
阅读全文
posted @ 2021-08-03 14:16
sportdog
阅读(63)
推荐(0)
摘要:
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title>
阅读全文
posted @ 2021-08-03 10:47
sportdog
阅读(35)
推荐(0)
摘要:
public void GetLength() { string str = "abc123中文汉字"; Console.WriteLine(str); int i = System.Text.Encoding.Default.GetBytes(str).Length; int j = str.Le
阅读全文
posted @ 2020-12-22 11:19
sportdog
阅读(91)
推荐(0)
摘要:
public class Test2A { int i = 1; public virtual void M1() { Console.WriteLine("i am A"); } public void M2() { Console.WriteLine("i = {0}",i); } } publ
阅读全文
posted @ 2020-12-22 11:17
sportdog
阅读(84)
推荐(0)
摘要:
//测试下在IE下不行,在火狐下可以 //这种写法拼接字符串比较方便 <script type="text/javascript" > var person = { name: "Snow", age:18, }; var str = "my name is :" + person.name + "
阅读全文
posted @ 2020-11-27 09:55
sportdog
阅读(239)
推荐(0)
摘要:
业务描述: SAP系统的开发人员提供了一个根据订单号获取SAP订单的WebService。此WebService与之前的WebService有点不同,需要输入用户名及密码。 WSDL地址: http://gwsapdev03.greatwall.com.cn:8000/sap/bc/srt/wsdl
阅读全文
posted @ 2020-11-05 15:25
sportdog
阅读(1080)
推荐(0)
摘要:
问题: 上一篇文章我们已经可以通过Swagger生成的Web页面对WebApi进行测试。先希望WebApi的具体方法有对应的注释。 解决: 1:在StartUp.cs 中添加以下代码: public void ConfigureServices(IServiceCollection services
阅读全文
posted @ 2020-11-03 10:57
sportdog
阅读(1629)
推荐(0)
摘要:
问题: 一个项目里会有比较多的WebApi,不想放到一个测试页面中,希望可以分组。 解决:StartUP.cs public void ConfigureServices(IServiceCollection services) { services.AddControllers(); // 注册S
阅读全文
posted @ 2020-11-02 14:02
sportdog
阅读(593)
推荐(0)
摘要:
问题: 在.Net Core 中创建的WebApi如何进行测试。 解决: 使用第三方控件Swagger 遇到的问题: 测试页面无法显示出来:后发现在火狐、IE下无法显示,换成Chrome就可以了。 在测试页面执行WebApi Action时,提示404网页无法找到的错误:尝试直接运行Action ,
阅读全文
posted @ 2020-11-02 13:29
sportdog
阅读(369)
推荐(0)