Explorar o código

调整端口号

DuGuYang hai 1 ano
pai
achega
18f3f19466
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      Program.cs
  2. 1 1
      Properties/launchSettings.json

+ 1 - 1
Program.cs

@@ -22,7 +22,7 @@ namespace MySystem
                 .ConfigureWebHostDefaults(webBuilder =>
                 {
                     webBuilder
-                    .UseUrls("http://*:5501")
+                    .UseUrls("http://*:5312")
                     .UseKestrel()
                     .UseContentRoot(Directory.GetCurrentDirectory())
                     .UseIISIntegration()

+ 1 - 1
Properties/launchSettings.json

@@ -21,7 +21,7 @@
       "environmentVariables": {
         "ASPNETCORE_ENVIRONMENT": "Development"
       },
-      "applicationUrl": "http://127.0.0.1:5501"
+      "applicationUrl": "http://127.0.0.1:5312"
     }
   }
 }